HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/SBogers10/shop.komma.nl/node_modules/@apollo/federation/src/csdlDirectives.ts
import {
  GraphQLDirective,
  DirectiveLocation,
  GraphQLNonNull,
  GraphQLString,
  GraphQLInt,
} from 'graphql';

export const ComposedGraphDirective = new GraphQLDirective({
  name: 'composedGraph',
  locations: [DirectiveLocation.SCHEMA],
  args: {
    version: {
      type: GraphQLNonNull(GraphQLInt),
    },
  },
});

export const GraphDirective = new GraphQLDirective({
  name: 'graph',
  locations: [DirectiveLocation.SCHEMA],
  args: {
    name: {
      type: GraphQLNonNull(GraphQLString),
    },
    url: {
      type: GraphQLNonNull(GraphQLString),
    },
  },
});

export const OwnerDirective = new GraphQLDirective({
  name: 'owner',
  locations: [DirectiveLocation.OBJECT],
  args: {
    graph: {
      type: GraphQLNonNull(GraphQLString),
    },
  },
});

export const KeyDirective = new GraphQLDirective({
  name: 'key',
  locations: [DirectiveLocation.OBJECT],
  args: {
    fields: {
      type: GraphQLNonNull(GraphQLString),
    },
    graph: {
      type: GraphQLNonNull(GraphQLString),
    },
  },
});

export const ResolveDirective = new GraphQLDirective({
  name: 'resolve',
  locations: [DirectiveLocation.FIELD_DEFINITION],
  args: {
    graph: {
      type: GraphQLNonNull(GraphQLString),
    },
  },
});

export const ProvidesDirective = new GraphQLDirective({
  name: 'provides',
  locations: [DirectiveLocation.FIELD_DEFINITION],
  args: {
    fields: {
      type: GraphQLNonNull(GraphQLString),
    },
  },
});

export const RequiresDirective = new GraphQLDirective({
  name: 'requires',
  locations: [DirectiveLocation.FIELD_DEFINITION],
  args: {
    fields: {
      type: GraphQLNonNull(GraphQLString),
    },
  },
});

export const csdlDirectives = [
  ComposedGraphDirective,
  GraphDirective,
  OwnerDirective,
  KeyDirective,
  ResolveDirective,
  ProvidesDirective,
  RequiresDirective,
];

export default csdlDirectives;