graphql-ruby icon indicating copy to clipboard operation
graphql-ruby copied to clipboard

Feature request to add a flag to identify if a list was scoped

Open alexus37 opened this issue 1 year ago • 0 comments

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

alexus37 avatar Aug 03 '24 11:08 alexus37