1.37.0 • Published 5 years ago

@base-cms/graphql-fragment-types v1.37.0

Weekly downloads
74
License
MIT
Repository
github
Last release
5 years ago

BaseCMS GraphQL Fragment Types

Provides fragment types for the BaseCMS GraphQL API. For use with Apollo GraphQL clients.

Usage

import introspectionQueryResultData from '@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
1.37.0

5 years ago

1.36.3

5 years ago

1.9.0

5 years ago

1.0.0

6 years ago

1.0.0-rc.1

6 years ago

1.0.0-beta.7

6 years ago

1.0.0-beta.1

6 years ago

1.0.0-alpha.1

6 years ago

0.10.0

6 years ago

0.9.40

6 years ago

0.9.38

6 years ago

0.9.12

6 years ago

0.9.0

6 years ago

0.8.0

6 years ago

0.7.0

6 years ago

0.6.0

6 years ago

0.5.0

6 years ago

0.4.15

6 years ago

0.4.14

6 years ago

0.4.12

6 years ago