4.1.0 • Published 5 months ago
@thatconference/schema v4.1.0
that-api-schema
Shared schema bits between entity services (e.g enums)
@thatconference/schema
Each exportable schema piece returns a GraphQL DocumentNode which can be merged into the rest of the services schema with mergeTypeDefs()
. For Example:
import path from 'path';
import { loadFilesSync } from '@graphql-tools/load-files';
import { mergeTypeDefs } from '@graphql-tools/merge';
import { productTypeEnum } from '@thatconference/schema';
const typesArray = loadFilesSync(path.join(__dirname, './**/*.graphql'));
export default mergeTypeDefs([typesArray, productTypeEnum], { all: true });
Publishing new versions
- ENSURE
package.json
version is updated to new semver value! - Create a release in GitHub using
v
+ semver value as tag (e.g.v1.1.0
)- Add release notes and changes made to this version
- From local command line at same tag point run
$ npm run npm:publish
- version is published to npmjs.com