4.74.0 • Published 10 months ago

@parameter1/base-cms-graphql-fragment-types v4.74.0

Weekly downloads
88
License
MIT
Repository
github
Last release
10 months ago

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.74.0

10 months ago

4.5.12

2 years ago

4.0.0

3 years ago

4.0.2

2 years ago

4.0.0-beta.0

3 years ago

4.0.0-alpha.0

3 years ago

3.0.0

3 years ago

2.45.0

4 years ago

2.37.1

4 years ago

2.0.0

5 years ago