Skip to content

Nested entry GraphQL support#14366

Merged
brandonkelly merged 6 commits into5.0from
feature/nested-entry-gql
Feb 13, 2024
Merged

Nested entry GraphQL support#14366
brandonkelly merged 6 commits into5.0from
feature/nested-entry-gql

Conversation

@brandonkelly
Copy link
Copy Markdown
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: "[email protected]"
  ) {
    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
@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