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

Nested entry GraphQL support #14366

Merged
merged 6 commits into from
Feb 13, 2024
Merged

Nested entry GraphQL support #14366

merged 6 commits into from
Feb 13, 2024

Conversation

brandonkelly
Copy link
Member

@brandonkelly brandonkelly commented Feb 13, 2024

Adds support for querying and mutating nested entries directly, rather than just through the top-level entry.

query {
  contactMethodsFieldEntries(ownerId: 253) {
    ...on contactMethod_Entry {
      id
      label
      sortOrder
      fieldHandle
      fieldId
      ownerId
    }
  }
}
mutation {
  save_contactMethodsField_contactMethod_Entry(
    ownerId: 253
    label: "Email"
    methodValue: "support@craftcms.com"
  ) {
    id
    label
    methodValue
  }
}

@brandonkelly brandonkelly force-pushed the feature/nested-entry-gql branch from 6f559ce to d4fc4f2 Compare February 13, 2024 06:53
@brandonkelly brandonkelly merged commit 3554168 into 5.0 Feb 13, 2024
6 checks passed
@brandonkelly brandonkelly deleted the feature/nested-entry-gql branch February 13, 2024 18:58
brandonkelly added a commit to craftcms/ckeditor that referenced this pull request Feb 15, 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