MCPcopy
hub / github.com/hasura/graphql-engine / YAML

Method YAML

cli/internal/projectmetadata/handler.go:355–362  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

353}
354
355func (m Metadata) YAML() ([]byte, error) {
356 var op internalerrors.Op = "projectmetadata.Metadata.YAML"
357 var buf bytes.Buffer
358 if err := metadataobject.GetEncoder(&buf).Encode(m); err != nil {
359 return nil, internalerrors.E(op, err)
360 }
361 return buf.Bytes(), nil
362}
363
364func GenMetadataFromMap(metadata map[string]interface{}) (*Metadata, error) {
365 var op internalerrors.Op = "projectmetadata.GenMetadataFromMap"

Callers 11

JSONMethod · 0.95
BuildYAMLMetadataMethod · 0.80
get_conf_fFunction · 0.80
check_query_fFunction · 0.80
v1q_fMethod · 0.80
v2q_fMethod · 0.80
v1metadataq_fMethod · 0.80
v1graphql_fMethod · 0.80
with_admin_secretMethod · 0.80
dump_to_stringFunction · 0.80

Calls

no outgoing calls

Tested by 1

with_admin_secretMethod · 0.64