package jsonutil

import "github.com/shurcooL/graphql/internal/jsonutil"

Package jsonutil provides a function for decoding JSON into a GraphQL query data structure.

Index

Functions

func UnmarshalGraphQL

func UnmarshalGraphQL(data []byte, v any) error

UnmarshalGraphQL parses the JSON-encoded GraphQL response data and stores the result in the GraphQL query data structure pointed to by v.

The implementation is created on top of the JSON tokenizer available in "encoding/json".Decoder.

Source Files

graphql.go

Version
v0.0.0-20230722043721-ed46e5a46466 (latest)
Published
Jul 22, 2023
Platform
linux/amd64
Imports
7 packages
Last checked
1 week ago

Tools for package owners.