- Feature: Enhancements to Connection macros to support extensibility of edge types. See PR #109 (Thanks, @coderdan!)
- Docs: Better links in generated documentation, updated links to specifications. (Thanks, @Gazler, @jackmarchant!)
- Feature: Update
Absinthe.Relay.Connection
handling of pagination information to match the latest spec. See PR #114 for more information. (Thanks, @ndreynolds!) - Bugfix: Better handling of errors relating to bad cursors given as arguments to
Absinthe.Relay.Connection
. See PR #110 for more information. (Thanks, @bernardd!) - Feature: Support overriding the global ID translators used for
Absinthe.Relay.Node
. See PR #93 for more details. (Thanks, @avitex!)
- Feature: Support overriding the resolver for
Absinthe.Relay.Connection
edge node fields. See PR #99 for more details.
- Bug Fix: Fix issue with
:modern
flavor + ParseIDs middleware. See PR #96 for more information.
- Feature: Support
null
values inParseIDs
middleware (passed through asnil
args) - Bug Fix: Support
null
values forbefore
andafter
pagination arguments (expected by Relay Modern)
- Type Spec Fix: Relax type constraints around
Connection.from_query
- Bug Fix: (Connection) Fix original issue with
from_query
wherehas_next_page
wasn't correctly reported in some instances. We now requestlimit + 1
records to determine if there's a next page (vs using a second count query), use the overage to determine if there are more records, and returnlimit
records. See PR #79.
- Enhancement: (Node) Better logging support when global ID generation fails due to a missing local ID in the source value. See PR #77.
- Bug Fix: (Connection) Fix issue where
has_next_page
is reported astrue
incorrectly; when the number of records and limit are the same. See PR #76.
- Bug Fix (Node): Fix regression with the
Absinthe.Relay.Node.ParseIDs
middleware when used in conjunction with theAbsinthe.Relay.Mutation
middleware. See PR #73. for details.
- Enhancement (Node):
Absinthe.Relay.Node.ParseIDs
can now decode lists of IDs. See the module docs, PR #69 for details. - Bug Fix (Connection): Make
Absinthe.Connection.from_slice/2
more forgiving if anil
value is passed in as theoffset
. See PR #70 for details.
- Enhancement (Node):
Absinthe.Relay.Node.ParseIDs
can now decode nested values! See the module docs for details. - Enhancement (Node): Improved error message when node ids cannot be parsed at all.
-
Breaking Change (Connection): The functions in the
Connection
module that produce connections now return{:ok, connection}
or{:error, reason}
as they do internal error handling of connection related arguments -
Enhancement (Node): Added
Absinthe.Relay.Node.ParseIDs
middleware. Use it instead ofAbsinthe.Relay.Helpers.parsing_node_ids/2
, which will be removed in a future release. -
Enhancement (Node): Allow multiple possible node types when parsing node IDs. (Thanks, @avitex.)
-
Bug Fix (Node): Handle errors when parsing multiple arguments for node IDs more gracefully. (Thanks to @avitex and @dpehrson.)