Skip to content

graphql.field.id option #32

Open
Open
@izumin5210

Description

input

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

output

export const User = objectType({
  name: "User",
  definition(t) {
    t.field.("databaseId", {
      type: nonNull("ID"),
      resolve(root) { return root.getId() }
    });
  }
});

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