You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, first thank you for a great project! Great job!
I have a question, say i am using postgres as my datasource for resolvers and i want to take advantage of the fact that graphql allows us to select subset of fields. So i want to just query fields i need to optimize the query.
Now how would i go about that when implementing resolvers for example:
queryfindTodos {
todos {
textdone
}
}
func (r*TodoResolver) Query_todos(ctx context.Context) ([]Todo, error) {
// how do i access which of the fields were selected in the query hererows, err:=r.db.Query("SELECT text, done FROM todos")
}
Thank you for any pointers :) Keep up the great job!
The text was updated successfully, but these errors were encountered:
Hello, first thank you for a great project! Great job!
I have a question, say i am using postgres as my datasource for resolvers and i want to take advantage of the fact that graphql allows us to select subset of fields. So i want to just query fields i need to optimize the query.
Now how would i go about that when implementing resolvers for example:
Thank you for any pointers :) Keep up the great job!
The text was updated successfully, but these errors were encountered: