Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/StellateHQ/graphql-query
/ functions
Functions
461 in github.com/StellateHQ/graphql-query
⨍
Functions
461
◇
Types & classes
143
↓ 125 callers
Method
push
(&mut self, segment: PathSegment)
src/visit/path.rs:10
↓ 75 callers
Method
alloc
(&self, item: T)
src/ast/ast.rs:32
↓ 59 callers
Function
assert_parse
(ctx: &'a ASTContext, source: &'a str, expected: T)
src/ast/parser.rs:629
↓ 48 callers
Method
next
(&mut self)
src/schema/sdl/parser.rs:43
↓ 46 callers
Method
next
(&mut self)
src/ast/parser.rs:36
↓ 46 callers
Method
pop
(&mut self)
src/visit/path.rs:14
↓ 28 callers
Method
alloc_str
(&self, str: &str)
src/ast/ast.rs:42
↓ 28 callers
Method
peek
(&mut self)
src/ast/parser.rs:44
↓ 20 callers
Method
peek
(&mut self)
src/schema/sdl/parser.rs:51
↓ 17 callers
Method
add_field
Add a new [SchemaField] to the list of fields
src/schema/schema.rs:184
↓ 17 callers
Function
assert_parse
(ctx: &'a ASTContext, source: &'a str, expected: T)
src/schema/sdl/tests.rs:26
↓ 16 callers
Method
get_type
(&self, name: &'a str)
src/schema/schema.rs:72
↓ 15 callers
Method
into_iter
(self)
src/ast/ast_conversion.rs:11
↓ 15 callers
Method
is_empty
(&self)
src/ast/ast.rs:203
↓ 11 callers
Method
add_error
Add an error to the list of errors in the `ValidationContext`. This is called inside of validation rules to add an error to the list and fail validat
src/validate/context.rs:29
↓ 11 callers
Method
add_possible_type
(&mut self, possible_type: &'a str)
src/schema/sdl/parse_ast.rs:67
↓ 10 callers
Method
compose_flow_enter
( &mut self, fn_a: fn(_self: &mut A, ctx: &mut C, node: &'a Node, info: &VisitInfo) -> VisitFl
src/visit/compose.rs:38
↓ 10 callers
Method
compose_flow_leave
( &mut self, fn_a: fn(_self: &mut A, ctx: &mut C, node: &'a Node, info: &VisitInfo) -> VisitFl
src/visit/compose.rs:104
↓ 9 callers
Method
object
(&self)
src/schema/schema.rs:505
↓ 7 callers
Method
add_interface
Add a new [SchemaInterface] to the list of implemented interfaces
src/schema/schema.rs:198
↓ 7 callers
Method
build_client_schema
Converts the introspected data to a [Schema].
src/schema/build_client_schema.rs:296
↓ 6 callers
Method
of_type
(&self, schema: &'a Schema<'a>)
src/schema/schema.rs:748
↓ 6 callers
Method
output_type
(&self)
src/schema/schema_reference.rs:93
↓ 6 callers
Method
push_pointer
(&mut self, pointer: OutputType<'a>)
src/schema/schema_reference.rs:75
↓ 5 callers
Method
get_possible_types
(&self)
src/schema/schema.rs:294
↓ 5 callers
Method
span
(&self)
src/ast/parser.rs:56
↓ 4 callers
Method
span
(&self)
src/schema/sdl/parser.rs:63
↓ 4 callers
Method
visit
Visit a GraphQL AST node tree recursively in depth-first order with a given visitor. The visitor must implement the [Visitor] trait which may also de
src/visit/visitor.rs:265
↓ 4 callers
Function
write_indent
(level: usize, buffer: &mut dyn Write)
src/ast/printer.rs:430
↓ 3 callers
Method
alloc_string
(&self, str: String)
src/ast/ast.rs:49
↓ 3 callers
Method
field
(&'a self)
src/ast/ast.rs:466
↓ 3 callers
Method
fold_operation
Folds a GraphQL document by a given operation instead. Instead of transforming the given document in its entirety `fold_operation` will start at the d
src/visit/folder.rs:897
↓ 3 callers
Function
from_input_type_ref
( ctx: &'arena ASTContext, input: &IntrospectionInputTypeRef, )
src/schema/build_client_schema.rs:159
↓ 3 callers
Method
get_field
(&self, field_name: &'a str)
src/schema/schema_reference.rs:99
↓ 3 callers
Method
get_fields
Get a [Map] of all fields on the [SchemaObject]
src/schema/schema.rs:189
↓ 3 callers
Method
get_interfaces
(&self)
src/schema/schema.rs:205
↓ 3 callers
Method
is_empty
Returns whether the schema is a default, empty schema
src/schema/schema.rs:35
↓ 3 callers
Method
to_json
(self, variables: Option<&Variables<'a>>)
src/json/conversion.rs:12
↓ 3 callers
Method
write_to_buffer
(&self, _level: usize, buffer: &mut dyn Write)
src/ast/printer.rs:42
↓ 2 callers
Method
add_argument
(&mut self, _ctx: &'a ASTContext, arg: SchemaInputField<'a>)
src/schema/schema.rs:331
↓ 2 callers
Method
add_possible_interface
Add a new [SchemaInterface] to the list that implements this [SchemaInterface]
src/schema/schema.rs:248
↓ 2 callers
Function
ast_variables_from_value
Convert [serde_json::Value] to [Variables] given [VariableDefinitions]. This may be used to accept JSON values as variables for a given operation def
src/json/values.rs:13
↓ 2 callers
Function
convert_to_schema_field
(ctx: &'a ASTContext, name: &'a str, field: &'a SchemaFieldPlaceholder)
src/schema/sdl/finalizers.rs:10
↓ 2 callers
Method
fold
Visit the GraphQL AST node tree recursively in depth-first order and create a transformed copy of it using the given folder. The folder must implement
src/visit/folder.rs:349
↓ 2 callers
Function
from_output_type_ref
( ctx: &'a ASTContext, output: &IntrospectionOutputTypeRef, )
src/schema/build_client_schema.rs:13
↓ 2 callers
Method
get_implements_interfaces
(&mut self)
src/schema/sdl/parser.rs:67
↓ 2 callers
Function
get_location
(source: &str, span: Span)
src/error.rs:132
↓ 2 callers
Method
implements_interface
(&self, schema_interface: &SchemaInterface<'a>)
src/schema/schema.rs:122
↓ 2 callers
Method
input_type
(&self)
src/schema/schema.rs:533
↓ 2 callers
Function
map_input_type
( arena: &'a ASTContext, wrapper: &'a TypeWrapper<'a>, )
src/schema/sdl/finalizers.rs:29
↓ 2 callers
Method
name
(&self)
src/schema/schema.rs:494
↓ 2 callers
Method
operation_with_index
( &'a self, by_name: Option<&'b str>, )
src/ast/ast.rs:743
↓ 2 callers
Method
output_type
(&self)
src/schema/schema.rs:542
↓ 2 callers
Method
parse
Parse an input source text into the implementor's AST Node structure and allocate the resulting AST into the current AST Context's arena.
src/ast/parser.rs:75
↓ 2 callers
Function
print_span
(source: &str, span: Span)
src/error.rs:89
↓ 2 callers
Function
raw_double_bits
(f: &f64)
src/ast/ast_util.rs:19
↓ 2 callers
Method
select_field
(&mut self, field_name: &'a str)
src/schema/schema_reference.rs:110
↓ 2 callers
Method
source
(&self)
src/ast/parser.rs:51
↓ 2 callers
Method
source
(&self)
src/schema/sdl/parser.rs:58
↓ 1 callers
Method
add_possible_interface
(&mut self, possible_type: &'a str)
src/schema/sdl/parse_ast.rs:71
↓ 1 callers
Method
add_value
(&mut self, _ctx: &'a ASTContext, value: &'a str)
src/schema/schema.rs:436
↓ 1 callers
Method
argument
( &mut self, _ctx: &'a ASTContext, argument: Argument<'a>, _info: &VisitInfo,
src/visit/folder.rs:285
↓ 1 callers
Function
arguments
()
src/ast/parser.rs:780
↓ 1 callers
Method
arguments
( &mut self, _ctx: &'a ASTContext, arguments: Arguments<'a>, _info: &VisitInfo
src/visit/folder.rs:274
↓ 1 callers
Function
ast_from_value
Convert [serde_json::Value] to an AST Value Node given a [Type] definition.
src/json/values.rs:49
↓ 1 callers
Function
ast_from_value_untyped
Convert [serde_json::Value] to an AST Value Node without casting the JSON value to a type.
src/json/values.rs:135
↓ 1 callers
Method
build_schema
( &'arena self, introspection: &IntrospectionSchema<'arena>, )
src/schema/build_client_schema.rs:49
↓ 1 callers
Function
contains_edge
( visited: &mut Vec<&'a str>, toplevel_name: &'a str, current_name: &'a str, fragment_edges: &
src/validate/rules/no_fragment_cycles.rs:115
↓ 1 callers
Function
directives
()
src/ast/lexer.rs:294
↓ 1 callers
Method
directives
Helper method to get all Directives for a given selection directly. Any selection AST node may carry Directives, so when those are checked it's unnec
src/ast/ast.rs:858
↓ 1 callers
Method
directives
( &mut self, _ctx: &'a ASTContext, directives: Directives<'a>, _info: &VisitIn
src/visit/folder.rs:239
↓ 1 callers
Function
empty
()
src/ast/lexer.rs:246
↓ 1 callers
Method
enter_argument
( &mut self, _: &mut (), _argument: &Argument, _info: &VisitIn
src/visit/visitor.rs:799
↓ 1 callers
Method
enter_directive
( &mut self, _ctx: &'a ASTContext, directive: Directive<'a>, _info: &VisitInfo
src/visit/folder.rs:251
↓ 1 callers
Method
enter_directive
( &mut self, _: &mut (), _directive: &Directive, _info: &Visit
src/visit/visitor.rs:780
↓ 1 callers
Method
enter_document
( &mut self, _: &mut (), _document: &'a Document<'a>, _info: &
src/visit/visitor.rs:638
↓ 1 callers
Method
enter_field
( &mut self, _ctx: &'a ASTContext, field: Field<'a>, _info: &VisitInfo, )
src/visit/folder.rs:216
↓ 1 callers
Method
enter_field
(&mut self, _: &mut (), _field: &Field, _info: &VisitInfo)
src/visit/visitor.rs:771
↓ 1 callers
Method
enter_fragment
( &mut self, _ctx: &'a ASTContext, fragment: FragmentDefinition<'a>, _info: &V
src/visit/folder.rs:111
↓ 1 callers
Method
enter_fragment
( &mut self, _: &mut (), _fragment: &FragmentDefinition, _info
src/visit/visitor.rs:676
↓ 1 callers
Method
enter_fragment_spread
( &mut self, _ctx: &'a ASTContext, fragment_spread: FragmentSpread<'a>,
src/visit/folder.rs:978
↓ 1 callers
Method
enter_fragment_spread
( &mut self, _: &mut (), _fragment_spread: &FragmentSpread, _i
src/visit/visitor.rs:733
↓ 1 callers
Method
enter_inline_fragment
( &mut self, _ctx: &'a ASTContext, inline_fragment: InlineFragment<'a>, _info:
src/visit/folder.rs:192
↓ 1 callers
Method
enter_inline_fragment
( &mut self, _: &mut (), _inline_fragment: &InlineFragment, _i
src/visit/visitor.rs:752
↓ 1 callers
Method
enter_operation
( &mut self, _ctx: &'a ASTContext, operation: OperationDefinition<'a>, _info:
src/visit/folder.rs:87
↓ 1 callers
Method
enter_operation
( &mut self, _: &mut (), _operation: &OperationDefinition, _in
src/visit/visitor.rs:657
↓ 1 callers
Method
enter_selection_set
( &mut self, _: &mut (), _selection_set: &SelectionSet, _info:
src/visit/visitor.rs:714
↓ 1 callers
Method
enter_variable_definition
( &mut self, _: &mut (), _var_def: &VariableDefinition, _info:
src/visit/visitor.rs:695
↓ 1 callers
Function
field
()
src/ast/printer.rs:473
↓ 1 callers
Method
field
(&mut self, field: Field<'a>)
src/visit/folder_simple.rs:60
↓ 1 callers
Method
fold_with_ctx
( &self, info: &mut VisitInfo, ctx: &'b private::FolderContext<'a>, folder: &'
src/visit/folder.rs:384
↓ 1 callers
Function
fragment
()
src/ast/parser.rs:1529
↓ 1 callers
Function
fragment_spread
()
src/ast/parser.rs:1088
↓ 1 callers
Method
fragments_with_index
Returns a `Map` keyed by all fragment names mapped to their [`FragmentDefinition`] and the index of where they appear in the list of definitions of th
src/ast/ast.rs:709
↓ 1 callers
Method
get_possible_interfaces
(&self)
src/schema/schema.rs:254
↓ 1 callers
Method
get_possible_type
(&self, name: &'a str)
src/schema/schema.rs:139
↓ 1 callers
Method
get_root_type
(&self, operation_kind: OperationKind)
src/schema/schema.rs:62
↓ 1 callers
Function
initialize_type_definition
Converts a raw TypeDefinition into a schema type, but doesn't initialize everything, like object fields. Instead, it just creates the top level shells
src/schema/sdl/finalizers.rs:67
↓ 1 callers
Function
inline_fragment
()
src/ast/parser.rs:1129
↓ 1 callers
Method
interface
(&self)
src/schema/schema.rs:519
next →
1–100 of 461, ranked by callers