-
Don't cache a global node identification config #51
To migrate, assign your node identification helper to the schema:
NodeIdentification = GraphQL::Relay::GlobalNodeIdentification.define { ... } MySchema.node_identification = NodeIdentification
- Support lazy definition blocks from graphql-ruby 0.17
- Add
startCursor
andendCursor
toPageInfo
#60
- Support
field:
keyword for connection helper #58
- Include description for built-in objects #55
- Correctly pass parent object to Connections #53
-
BaseType.define_connection
no longer caches the result to use as the defaultBaseType.connection_type
. Now, store the result of.define_connection
in a variable and pass that variable into the schema:# Capture the returned type: SomethingCustomConnectionType = SomethingType.define_connection { ... } DifferentThingType = GraphQL::ObjectType.define do # And pass it to the connection helper: connection :somethings, SomethingCustomConnectionType end
- Support for custom edge types / classes #50
- Support for multiple connection classes #50
- Support
graphql
0.14.0 #47
- Use strings as argument names, not symbols #47
- Root
id
field may have a description #43
- Fix Node interface to support GraphQL 0.13.0+
- Fix Node interface when type_from_object returns nil
- Respond to connection fields without any pagination arguments
- Limit by
max_page_size
even when no arguments are present
-
Remove the
order
argument from connection fields. This isn't part of the spec and shouldn't have been there in the first place!You can implement this behavior with a custom argument, for example:
field :cities, CityType.connection_type do argument :order, types.String, default_value: "name" resolve ->(obj, args, ctx) { obj.order(args[:order]) } end
- Include the MIT license in the project's source
- Accept description for Mutations
- Accept configs for
to_global_id
andfrom_global_id
- Support
graphql
0.12+
- Limit the
count(*)
when testing next page with ActiveRecord #28
max_page_size
option for connections- Support ActiveSupport 5.0.0.beta2
- Correctly cast values from connection cursors #21
- Use class name instead of class object when finding a connection implementation (to support Rails autoloading) #16
- Stringify
id
when passed intoto_global_id
GlobalNodeIdentification#object_from_id(id, ctx)
now accepts context as the second argument #9
- Allow custom UUID join string #15
- Remove implicit ActiveSupport dependency #14