UNPKG

@cran/gql.core

Version:

Cran/GraphQL Core Utilities

12 lines (11 loc) 458 B
import { isTypeOfDirective } from "./isTypeOf"; import { resolveDirective } from "./resolve"; import { resolveTypeDirective } from "./resolveType"; export { isTypeOfDirective, resolveDirective, resolveTypeDirective, }; export function withCoreDirectives(options = {}) { return [ isTypeOfDirective(options.isTypeOfDirective), resolveDirective(options.resolveDirective), resolveTypeDirective(options.resolveTypeDirective), ]; }