Sha256: 5dd3ea88976b7a90e2b02e501cccea617f84449ab6936f2155a0f397d806352a
Contents?: true
Size: 721 Bytes
Versions: 3
Compression:
Stored size: 721 Bytes
Contents
module GraphQL module Relay # Helpers for efficient `RANGE_ADD` mutations. # # Add an edge to a connection. # 'append', 'ignore', 'prepend', 'refetch', or 'remove' module RangeAdd RANGE_BEHAVIORS = [ # Put the new item at the _start_ of the connection PREPEND = :prepend, # Put the new item at the _end_ of the connection APPEND = :append, # Although the item is added to storage, don't include it in the response IGNORE = :ignore, # Don't try to efficiently calculate the new item's position. # Instead, refetch the whole connection. REFETCH = :refetch, # ??? REMOVE = :remove, ] end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
graphql-relay-0.12.0 | lib/graphql/relay/range_add.rb |
graphql-relay-0.11.2 | lib/graphql/relay/range_add.rb |
graphql-relay-0.11.1 | lib/graphql/relay/range_add.rb |