Skip to content

Conversation

olivierwilkinson
Copy link
Owner

Currently there are two scenarios when a select operation type is found:

  • When an include has a select within it
  • When a select has a relation in it

This means that there is a situation where it is not possible to reason about what to do with a select because the two scenarios look the same based on the available information; both have the include operation as the parent.

BREAKING CHANGE: remove the calls for include selects

Extensions that relied on calls with the "select" operation for select objects within an include will no longer be able to use that call. Instead use the parent "include" operation to modify the selected fields, or use the "select" operation for the relation within that select object.

Currently there are two scenarios when a select operation type is found:
- When an include has a select within it
- When a select has a relation in it

This means that there is a situation where it is not possible to reason
about what to do with a select because the two scenarios look the same
based on the available information; both have the include operation as
the parent.

BREAKING CHANGE: remove the calls for include selects

Extensions that relied on calls with the "select" operation for select
objects within an include will no longer be able to use that call.
Instead use the parent "include" operation to modify the selected fields,
or use the "select" operation for the relation within that select object.
@olivierwilkinson olivierwilkinson force-pushed the improve-rationality-of-calls-by-removing-include-select-calls branch from 658f0fa to d30522a Compare January 13, 2024 16:50
@MilanKovacic
Copy link

Hi @olivierwilkinson, great library. Are you still maintaining the library and plan to merge this PR?

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.

2 participants