Apollo Elements Apollo Elements Guides API Blog Toggle darkmode

Helpers: Library Functions

lib/create-apollo-client.js

createApolloClient

Parameters

options

Options

Limited configuration options for the client.

Returns


Exports

import { createApolloClient } from '@apollo-elements/core/lib/create-apollo-client';

Caught a mistake or want to contribute to the documentation? Edit this page on GitHub!

Portions of API docs © Apollo GraphQL

lib/has-all-variables.js

hasAllVariables

Parameters

operation

Partial<Operation>

The GraphQL operation to validate.

Returns


Exports

import { hasAllVariables } from '@apollo-elements/core/lib/has-all-variables';

Caught a mistake or want to contribute to the documentation? Edit this page on GitHub!

Portions of API docs © Apollo GraphQL

lib/is-client-operation.js

isClientOperation

Parameters

operation

Operation

Operation to check

Returns


Exports

import { isClientOperation } from '@apollo-elements/core/lib/is-client-operation';

Caught a mistake or want to contribute to the documentation? Edit this page on GitHub!

Portions of API docs © Apollo GraphQL

lib/is-valid-gql.js

isValidGql

Parameters

doc

unknown

Maybe a DocumentNode

Returns


Exports

import { isValidGql } from '@apollo-elements/core/lib/is-valid-gql';