defradb_client_query
defradb client query
Send a DefraDB GraphQL query request
Synopsis
Send a DefraDB GraphQL query request to the database.
A query request can be sent as a single argument. Example command: defradb client query 'query { ... }'
Do a query request from a file by using the '-f' flag. Example command: defradb client query -f request.graphql
Do a query request from a file and with an identity. Example command: defradb client query -i 028d53f37a19afb9a0dbc5b4be30c65731479ee8cfa0c9bc8f8bf198cc3c075f -f request.graphql
Or it can be sent via stdin by using the '-' special syntax. Example command: cat request.graphql | defradb client query -
A GraphQL client such as GraphiQL (https://github.com/graphql/graphiql) can be used to interact with the database more conveniently.
To learn more about the DefraDB GraphQL Query Language, refer to https://docs.source.network.
defradb client query [-i --identity] [request] [flags]
Options
-f, --file string File containing the query request
-h, --help help for query
-o, --operation string Name of the operation to execute in the query
-v, --variables string JSON encoded variables to use in the query