Class: GraphQL::OperationDefinition

Inherits:
Node
  • Object
show all
Defined in:
ext/graphql_parser/graphql_ruby.c

Instance Method Summary collapse

Instance Method Details

#directives_sizeObject



96
97
98
99
100
# File 'ext/graphql_parser/graphql_ruby.c', line 96

static VALUE operation_definition_get_directives_size(VALUE self) {
  struct GraphQLAstOperationDefinition *node;
  TypedData_Get_Struct(self, struct GraphQLAstOperationDefinition, &operation_definition_type, node);
  return INT2FIX(GraphQLAstOperationDefinition_get_directives_size(node));
}

#nameObject



83
84
85
86
87
88
# File 'ext/graphql_parser/graphql_ruby.c', line 83

static VALUE operation_definition_get_name(VALUE self) {
  struct GraphQLAstOperationDefinition *node;
  TypedData_Get_Struct(self, struct GraphQLAstOperationDefinition, &operation_definition_type, node);
  if (GraphQLAstOperationDefinition_get_name(node) == NULL) return Qnil;
  return TypedData_Wrap_Struct(name_class, &name_type, (void*)GraphQLAstOperationDefinition_get_name(node));
}

#operationObject



77
78
79
80
81
# File 'ext/graphql_parser/graphql_ruby.c', line 77

static VALUE operation_definition_get_operation(VALUE self) {
  struct GraphQLAstOperationDefinition *node;
  TypedData_Get_Struct(self, struct GraphQLAstOperationDefinition, &operation_definition_type, node);
  return rb_str_new_cstr(GraphQLAstOperationDefinition_get_operation(node));
}

#selection_setObject



102
103
104
105
106
# File 'ext/graphql_parser/graphql_ruby.c', line 102

static VALUE operation_definition_get_selection_set(VALUE self) {
  struct GraphQLAstOperationDefinition *node;
  TypedData_Get_Struct(self, struct GraphQLAstOperationDefinition, &operation_definition_type, node);
  return TypedData_Wrap_Struct(selection_set_class, &selection_set_type, (void*)GraphQLAstOperationDefinition_get_selection_set(node));
}

#variable_definitions_sizeObject



90
91
92
93
94
# File 'ext/graphql_parser/graphql_ruby.c', line 90

static VALUE operation_definition_get_variable_definitions_size(VALUE self) {
  struct GraphQLAstOperationDefinition *node;
  TypedData_Get_Struct(self, struct GraphQLAstOperationDefinition, &operation_definition_type, node);
  return INT2FIX(GraphQLAstOperationDefinition_get_variable_definitions_size(node));
}