GraphQL v0.3.2 GraphQL.Util.ArrayMap

ArrayMap is used for representing lists in intermediate results. This means the entire intermediate Executor result representation can be manipulated with the Access protocol which will allow for patching the entire structure in an ad-hoc manner. This is key to implementing deferred resolvers.

Summary

Functions

Converts an intermediate executor result that contains ArrayMaps into one where the array maps are converted into lists

Callback implementation for c:Access.fetch/2

Callback implementation for c:Access.get/3

Callback implementation for c:Access.get_and_update/3

Callback implementation for c:Access.pop/2

Functions

expand_result(result)

Converts an intermediate executor result that contains ArrayMaps into one where the array maps are converted into lists.

fetch(array_map, key)

Callback implementation for c:Access.fetch/2.

get(array_map, key, value)

Callback implementation for c:Access.get/3.

get_and_update(array_map, key, list)

Callback implementation for c:Access.get_and_update/3.

new(map)
pop(array_map, key)

Callback implementation for c:Access.pop/2.

put(array_map, index, value)