Skip to content

Instantly share code, notes, and snippets.

@handshake-engineering-blog
Created April 19, 2021 20:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save handshake-engineering-blog/bca0376dbf05230f15e8a6bb8197f1f5 to your computer and use it in GitHub Desktop.
Save handshake-engineering-blog/bca0376dbf05230f15e8a6bb8197f1f5 to your computer and use it in GitHub Desktop.
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