Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
1977385383_08
class QueryType < GraphQL::Schema::Object
field :users, Types::Customer.connection_type, null: false do
description "Show all customers"
end
def employers(query:)
CustomConnection.new(User.order(:id))
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment