Skip to content

graphql.*.name option #21

@izumin5210

Description

@izumin5210

input

message User {
  // Required.
  int64 id = 1 [graphql.field.name = "databaseId"];
}

output

export const User = objectType({
  name: "User",
  definition(t) {
    t.field.("databaseId", {
      type: nonNull("Int"),
      resolve(root) { return root.getId() }
    });
  }
});
  • object
  • field
  • union
  • enum
  • enum value

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions