package
1.0.2
Repository: https://github.com/onsdigital/dp-graph.git
Documentation: pkg.go.dev

# Functions

Code returns a dpbolt.ResultMapper which converts a dpbolt.Result to models.Code.
CodeList returns a dpbolt.ResultMapper which converts a dpbolt.Result to a model.CodeList.
CodeLists returns a dpbolt.ResultMapper which converts a dpbolt.Result to models.CodeLists.
Codes returns a dpbolt.ResultMapper mapper which converts dpbolt.Result to models.CodeResults.
CodesDatasets returns a dpbolt.ResultMapper which converts dpbolt.Result to Datasets.
Edition returns a dpbolt.ResultMapper mapper which converts dpbolt.Result to models.Edition.
Editions returns a dpbolt.ResultMapper mapper which converts dpbolt.Result to models.Editions.
GetCount returns dpbolt.ResultMapper for extracting an int64 value from a dpbolt.Result.
GetNodeID returns dpbolt.ResultMapper for extracting a node id from a dpbolt.Result.
Hierarchy returns a dpbolt.ResultMapper mapper which converts dpbolt.Result to models.Response.
HierarchyCodelist returns a dpbolt.ResultMapper which converts a dpbolt.Result to CodelistID string.
HierarchyElement returns a dpbolt.ResultMapper mapper which converts dpbolt.Result to HierarchyElements.

# Variables

ErrInputNil is used when a result was expected but was nil.

# Structs

DatasetData contains information specific to how this code is represented or present in a particular dataset.
HierarchyElements encases a list so a pointer to the list can more easily be passed into the mapper functions.
Result contains data and metadata relating to a neo4j query response.

# Type aliases

DatasetEditinos maps edition labels to lists of version IDs.
Datasets maps datasetIDs to dataset data.
ResultMapper defines the function signature all mappers will need to satisfy.
Versions contains a list of version IDs.