GraphQLSwift / Graphiti

The Swift GraphQL Schema framework for macOS and Linux
MIT License
532 stars 67 forks source link

Would it make sense to make NoArguments init public? #124

Closed cshadek closed 11 months ago

cshadek commented 1 year ago

Right now NoArguments.init is not public, so it appears to me that you can't call a function in your resolver that uses NoArguments. It would sometimes be nice to be able to make an instance of NoArguments in order to call these resolver functions directly.

NeedleInAJayStack commented 1 year ago

Sure, I see no problem with that at all. Could you create a quick pull request for it?

cshadek commented 1 year ago

Sure - I'll get right on it. On a similar note, I was thinking it may make sense to make PageInfo have a public init to make it easier to create custom connections. I'll make both changes and then create a pull request