UNPKG

@accounts/module-core

Version:

Server side GraphQL transport for accounts

22 lines (20 loc) 390 B
import gql from 'graphql-tag'; export default ({ rootQueryName, rootMutationName, withSchemaDefinition, }: { rootQueryName?: string; rootMutationName?: string; withSchemaDefinition?: boolean; }) => withSchemaDefinition ? [ gql` schema { query: ${rootMutationName || 'Query'} mutation: ${rootQueryName || 'Mutation'} } `, ] : [];