Skip to content

add support for GraphQL Docs Request for client request, add fix can'… - #18

Open
yongboy wants to merge 1 commit into
bjornbytes:masterfrom
yongboy:master
Open

add support for GraphQL Docs Request for client request, add fix can'…#18
yongboy wants to merge 1 commit into
bjornbytes:masterfrom
yongboy:master

Conversation

@yongboy

Copy link
Copy Markdown

Fix bugs:

  • Add GraphQL Introspection support for GraphQL Client (eg:chrome‘s GraphIQL Feen Plugin)init request avoiding show Docs failure
  • Fix does not get the InputObject's Parameter bug when need
  • Fix the directive does not work well with Variables's parameter bug

:))

…t get the InputObject's Parameter bug, and fix the directive does not work well bug.
resolve = function(kind)
if kind.__type == 'Object' then
return kind.interfaces
return kind.interface or {}

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't this still be .interfaces?

Comment threadgraphql/rules.lua
variableMap[_vn] = true
-- TODO Maybe danger
if not _cv[_vn] then
_cv[_vn] = true

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This leads to a regression where unused variables don't fail validation anymore, try validating query test($arg: String) {}.

@LennyPenny

Copy link
Copy Markdown

Any updates on this @yongboy?

@ruslantalpa

Copy link
Copy Markdown
Contributor

some of the changes are integrated here (PR will come later). https://github.com/ruslantalpa/graphql-lua/tree/deploy

the docs work for me

@andyvanee

Copy link
Copy Markdown

I'm not sure if this thread is dead, but I've got this working with GraphiQL with the following minimal patch: andyvanee@4785941

Also, I was a bit confused since the only available version on luarocks is the 0.0.2 tag, which is quite old and does not include many of the changes necessary to work with GraphiQL - particularly 119aafe . Perhaps it's time for an updated tag?

Thanks!

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

@yongboy@LennyPenny@ruslantalpa@andyvanee@bjornbytes