Dagger
Search

graphql

No long description provided.

Installation

dagger install github.com/shykes/dagger/ci/std/graphql@d0e97b1df946cb44df1415ed0e3bf2b8c4e91d80

Entrypoint

Return Type
Graphql
Example
dagger -m github.com/shykes/dagger/ci/std/graphql@d0e97b1df946cb44df1415ed0e3bf2b8c4e91d80 call \
func (m *myModule) example() *Graphql  {
	return dag.
			Graphql()
}
@function
def example() -> dag.Graphql:
	return (
		dag.graphql()
	)
@func()
example(): Graphql {
	return dag
		.graphql()
}

Types

Graphql 🔗

An instance of the GraphQL module

fromJson() 🔗

Load a GraphQL schema from a JSON spec

Return Type
Schema !
Arguments
NameTypeDefault ValueDescription
specFile !-No description provided
Example
dagger -m github.com/shykes/dagger/ci/std/graphql@d0e97b1df946cb44df1415ed0e3bf2b8c4e91d80 call \
 from-json --spec file:path
func (m *myModule) example(spec *File) *GraphqlSchema  {
	return dag.
			Graphql().
			FromJson(spec)
}
@function
def example(spec: dagger.File) -> dag.GraphqlSchema:
	return (
		dag.graphql()
		.from_json(spec)
	)
@func()
example(spec: File): GraphqlSchema {
	return dag
		.graphql()
		.fromJson(spec)
}

Schema 🔗

A GraphQL schema

file() 🔗

The schema encoded to a .graphql file

Return Type
File !
Example
dagger -m github.com/shykes/dagger/ci/std/graphql@d0e97b1df946cb44df1415ed0e3bf2b8c4e91d80 call \
 from-json --spec file:path \
 file
func (m *myModule) example(spec *File) *File  {
	return dag.
			Graphql().
			FromJson(spec).
			File()
}
@function
def example(spec: dagger.File) -> dagger.File:
	return (
		dag.graphql()
		.from_json(spec)
		.file()
	)
@func()
example(spec: File): File {
	return dag
		.graphql()
		.fromJson(spec)
		.file()
}