Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Composite resolver keys #146

Merged
merged 1 commit into from
Jun 30, 2024
Merged

Composite resolver keys #146

merged 1 commit into from
Jun 30, 2024

Conversation

gmac
Copy link
Owner

@gmac gmac commented Jun 30, 2024

Adds support for composite resolver keys, for example:

interface FieldOwner {
  id: ID!
  type: String!
}
type CustomField {
  owner: FieldOwner!
  key: String!
  value: String
}
input CustomFieldLookup {
  ownerId: ID!
  ownerType: String!
  key: String!
}
type Query {
  customFields(lookups: [CustomFieldLookup!]!): [CustomField]! @stitch(
    key: "owner { id type } key",
    arguments: "lookups: { ownerId: $.owner.id, ownerType: $.owner.type, key: $.key }"
  )
}

@gmac gmac merged commit 65197f8 into v1_14_0 Jun 30, 2024
@gmac gmac deleted the resolver_keys branch June 30, 2024 18:53
@gmac gmac mentioned this pull request Jun 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant