GraphQLSwift / Graphiti

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

Use reflection to add all properties of the model automatically and provide an exclude function #2

Closed unnamedd closed 7 years ago

unnamedd commented 7 years ago

something like

try schema.object(type: Person.self) { person in
    try person.exportFields(excluding: "id", "birthday")
}