Vincit / objection-graphql

GraphQL schema generator for objection.js
MIT License
307 stars 35 forks source link

Virtual attributes #57

Closed timhuff closed 6 years ago

timhuff commented 6 years ago

@nasushkov This is proper support for virtual attributes - requires no additional configuration. It has the user define the attribute directly on the schema and then simply filters it out of selects. This is a lot cleaner than my original implementation. I'm tempted to go ahead and merge it but it removes the old implementation, which would be a breaking change. Personally, I think it's fine - it's only been a day and I don't want the old implementation cluttering up the code base.