graphql-ruby
graphql-ruby copied to clipboard
Feature request to add a flag to identify if a list was scoped
This is a feature request to add a flag to an object specifying if the list was scoped. This would make it easier to check if the items returned from the scoped_items function were scoped and therefore no artifical clone would be required.
I'm open to adding some kind of flag method on the returned object, something like
graphql_list_was_scoped?, and checking that inside GraphQL-Ruby. (I'd rather not go for multiple return ... in places where I've used that, it has added overhead and complexity 😩 )
Originally posted by @rmosolgo in https://github.com/rmosolgo/graphql-ruby/pull/3994#issuecomment-2265575031