Class: GraphQL::Field

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

Instance Method Summary collapse

Instance Method Details

#aliasObject



187
188
189
190
191
192
# File 'ext/graphql_parser/graphql_ruby.c', line 187

static VALUE field_get_alias(VALUE self) {
  struct GraphQLAstField *node;
  TypedData_Get_Struct(self, struct GraphQLAstField, &field_type, node);
  if (GraphQLAstField_get_alias(node) == NULL) return Qnil;
  return TypedData_Wrap_Struct(name_class, &name_type, (void*)GraphQLAstField_get_alias(node));
}

#arguments_sizeObject



200
201
202
203
204
# File 'ext/graphql_parser/graphql_ruby.c', line 200

static VALUE field_get_arguments_size(VALUE self) {
  struct GraphQLAstField *node;
  TypedData_Get_Struct(self, struct GraphQLAstField, &field_type, node);
  return INT2FIX(GraphQLAstField_get_arguments_size(node));
}

#directives_sizeObject



206
207
208
209
210
# File 'ext/graphql_parser/graphql_ruby.c', line 206

static VALUE field_get_directives_size(VALUE self) {
  struct GraphQLAstField *node;
  TypedData_Get_Struct(self, struct GraphQLAstField, &field_type, node);
  return INT2FIX(GraphQLAstField_get_directives_size(node));
}

#nameObject



194
195
196
197
198
# File 'ext/graphql_parser/graphql_ruby.c', line 194

static VALUE field_get_name(VALUE self) {
  struct GraphQLAstField *node;
  TypedData_Get_Struct(self, struct GraphQLAstField, &field_type, node);
  return TypedData_Wrap_Struct(name_class, &name_type, (void*)GraphQLAstField_get_name(node));
}

#selection_setObject



212
213
214
215
216
217
# File 'ext/graphql_parser/graphql_ruby.c', line 212

static VALUE field_get_selection_set(VALUE self) {
  struct GraphQLAstField *node;
  TypedData_Get_Struct(self, struct GraphQLAstField, &field_type, node);
  if (GraphQLAstField_get_selection_set(node) == NULL) return Qnil;
  return TypedData_Wrap_Struct(selection_set_class, &selection_set_type, (void*)GraphQLAstField_get_selection_set(node));
}