crelte / queries
crelte
Classes
| Class | Description |
|---|---|
| Queries | With queries you can execute GraphQl queries, either directly to the endpoint or via the server queries. |
| QueryError | A QueryError error |
| QueryVar | - |
Type Aliases
| Type Alias | Description |
|---|---|
| Caching | Defines when a query can safely be cached. |
| GqlQuery | You should never create this type directly. It is returned from the gql template function. |
| Handle | Handles a query request. |
| HandleFn | use Handle |
| NamedQuery | Always create this object via the namedQuery function |
| QueriesOptions | Options for the Queries class |
| Query | A GraphQL query |
| QueryErrorResponse | - |
| QueryOptions | Options to configure the request |
| Transform | Transforms the query response before it is returned or cached. |
| TransformFn | use Transfrom |
| ValidIf | - |
Variables
| Variable | Description |
|---|---|
| vars | - |
Functions
| Function | Description |
|---|---|
| gql | Create a GraphQL query string with variables. |
| isQuery | Returns true if the passed object is a GraphQlQuery |
| namedQuery | Create a NamedQuery for the given server query name. |
| varsIdsEqual | Checks if two id arrays are equal |