json-to-graphql.object
add-objects
(add-objects fields objects)
Adds all object types that occur in `fields` to `objects`.
alter-modifiers
(alter-modifiers modifiers value)
Removes existing modifiers and applies new modifiers.
id?
(id? [k v])
Returns whether field should be ID.
non-null
(non-null str)
Transforms fields non-null value to list with non-null metadata.
object-name
(object-name key)
Returns name for object in GraphQl schema.
object-schema
Returns function for creating schema for one object.
parse-field
(parse-field field name-fn)
Returns `field` with its parsed value.
If `field` is object type, name of object will be created with `name-fn`.
parse-object
(parse-object objects)(parse-object objects schema-fn)
Returns GraphQL schema for supplied object and for all nested objects.
parse-type
(parse-type name-fn object)
Parses values of all fields in `object`, and returns MapEntry that represents parsed object.
remove-modifiers
(remove-modifiers object)
Removes all modifiers (list and non-null) from object.