How to use the graphql-zeus.Helpers.Extend function in graphql-zeus

To help you get started, we’ve selected a few graphql-zeus examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github graphql-editor / graphql-editor / src / TreeToNodes / index.ts View on Github external
static createExtendHelper(f: ParserField): ParserField {
    return {
      args: [f],
      data: {
        type: Helpers.Extend,
      },
      name: Helpers.Extend,
      type: {
        name: Helpers.Extend,
      },
    } as ParserField;
  }
  /**
github graphql-editor / graphql-editor / src / Graph / definitions / Extension.ts View on Github external
acceptsInputs,
  options,
  data: { type: extensionType, for: [Helpers.Extend] },
  instances: undefined,
  node: {
    ...Utils.createOND(),
    notEditable: true,
    name: undefined,
    outputs: [],
  },
  root: false,
});

export const ExtensionDefinition: EditorNodeDefinition = {
  type: Helpers.Extend,
  data: { type: Helpers.Extend },
  node: {
    ...Utils.createOND(),
    notEditable: true,
    name: undefined,
  },
  root: true,
  acceptsInputs: (d, defs, _) =>
    Utils.displayAsCategories(Utils.sortByParentType(Utils.dataForTypes(defs, [Helpers.Extend]))),
  help: help.extend,
};
github graphql-editor / graphql-editor / src / Graph / definitions / Extension.ts View on Github external
) => ({
  acceptsInputs,
  options,
  data: { type: extensionType, for: [Helpers.Extend] },
  instances: undefined,
  node: {
    ...Utils.createOND(),
    notEditable: true,
    name: undefined,
    outputs: [],
  },
  root: false,
});

export const ExtensionDefinition: EditorNodeDefinition = {
  type: Helpers.Extend,
  data: { type: Helpers.Extend },
  node: {
    ...Utils.createOND(),
    notEditable: true,
    name: undefined,
  },
  root: true,
  acceptsInputs: (d, defs, _) =>
    Utils.displayAsCategories(Utils.sortByParentType(Utils.dataForTypes(defs, [Helpers.Extend]))),
  help: help.extend,
};
github graphql-editor / graphql-editor / src / Graph / definitions / Extension.ts View on Github external
acceptsInputs: (d, defs, _) =>
    Utils.displayAsCategories(Utils.sortByParentType(Utils.dataForTypes(defs, [Helpers.Extend]))),
  help: help.extend,
github graphql-editor / graphql-editor / src / Graph / definitions / Extension.ts View on Github external
) => Partial & Pick = (
  { acceptsInputs, options },
  extensionType,
) => ({
  acceptsInputs,
  options,
  data: { type: extensionType, for: [Helpers.Extend] },
  instances: undefined,
  node: {
    ...Utils.createOND(),
    notEditable: true,
    name: undefined,
    outputs: [],
  },
  root: false,
});
github graphql-editor / graphql-editor / src / TreeToNodes / index.ts View on Github external
static createExtendHelper(f: ParserField): ParserField {
    return {
      args: [f],
      data: {
        type: Helpers.Extend,
      },
      name: Helpers.Extend,
      type: {
        name: Helpers.Extend,
      },
    } as ParserField;
  }
  /**