4.5.12 • Published 1 year ago
@parameter1/base-cms-graphql-fragment-types v4.5.12
BaseCMS GraphQL Fragment Types
Provides fragment types for the BaseCMS GraphQL API. For use with Apollo GraphQL clients.
Usage
import introspectionQueryResultData from '@parameter1/base-cms-graphql-fragment-types';
import { ApolloClient } from 'apollo-client';
import { InMemoryCache, IntrospectionFragmentMatcher } from 'apollo-cache-inmemory';
const fragmentMatcher = new IntrospectionFragmentMatcher({ introspectionQueryResultData });
const cache = new InMemoryCache({ fragmentMatcher });
export default new ApolloClient({ cache });
Developing / Building
To build a new version of types.json
, run the following command inside the monorepo.
GRAPHQL_URL=[the graphql url to build from] node packages/graphql-fragment-types/build.js
4.5.12
1 year ago
4.0.0
1 year ago
4.0.2
1 year ago
4.0.0-beta.0
1 year ago
4.0.0-alpha.0
1 year ago
3.0.0
2 years ago
2.45.0
3 years ago
2.37.1
3 years ago
2.0.0
3 years ago