Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Missing GraphQLFieldConfig in Definition.swift #42

Closed
kimdv opened this issue Jun 21, 2018 · 3 comments
Closed

Missing GraphQLFieldConfig in Definition.swift #42

kimdv opened this issue Jun 21, 2018 · 3 comments

Comments

@kimdv
Copy link
Contributor

kimdv commented Jun 21, 2018

As the title says I can't find the GraphQLFieldConfig in the definitions file.

export type GraphQLFieldConfig<
  TSource,
  TContext,
  TArgs = { [argument: string]: any },
> = {|
  type: GraphQLOutputType,
  args?: GraphQLFieldConfigArgumentMap,
  resolve?: GraphQLFieldResolver<TSource, TContext, TArgs>,
  subscribe?: GraphQLFieldResolver<TSource, TContext, TArgs>,
  deprecationReason?: ?string,
  description?: ?string,
  astNode?: ?FieldDefinitionNode,
|};

I'm currently looking into build a SwiftRelay for pagination, and I ran into this type and can't fint it.

@paulofaria
Copy link
Member

Sorry for taking so long to reply. This type must've been added after my first work on GraphQLSwift. I'm currently super busy, as you can see, and don't have time to implement this type. Feel free to implement it. 🙂

@daviskoh
Copy link

seems like GraphQLFieldDefinition is exactly that but w/ a diff name 🤔

@paulofaria
Copy link
Member

@daviskoh is correct! Closing issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants