You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "Jacques Le Roux (Jira)" <ji...@apache.org> on 2021/02/20 11:21:00 UTC

[jira] [Commented] (OFBIZ-11347) Add GraphQL component

    [ https://issues.apache.org/jira/browse/OFBIZ-11347?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17287648#comment-17287648 ] 

Jacques Le Roux commented on OFBIZ-11347:
-----------------------------------------

Hi Girish,

I'm not sure to understand the steps you gave. I have simply applied the patch at
https://patch-diff.githubusercontent.com/raw/apache/ofbiz-plugins/pull/47.patch
Did a "gradlew loadAll ofbiz",
Using my old FF version (56) I can't see anything at https://localhost:8443/graphql/control/graphiql
Using Edge (I'm on Windows 7) it works. I saw the explanation and hastily tried

{noformat}
{
  field(arg: "value") {
    subField
  }
}
{noformat}

in the left panel, and got

{noformat}
{
  "errors": [
    {
      "message": "Validation error of type FieldUndefined: Field 'field' in type 'QueryRootObjectType' is undefined @ 'field'",
      "locations": [
        {
          "line": 2,
          "column": 3
        }
      ],
      "extensions": {
        "classification": "ValidationError"
      }
    }
  ],
  "data": null
}
{noformat}

which is not a big deal, but how can I get back to the explanation?

TIA

> Add GraphQL component
> ---------------------
>
>                 Key: OFBIZ-11347
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-11347
>             Project: OFBiz
>          Issue Type: New Feature
>          Components: ALL PLUGINS
>    Affects Versions: Trunk
>            Reporter: Girish Vasmatkar
>            Assignee: Girish Vasmatkar
>            Priority: Minor
>         Attachments: image-2020-12-26-22-46-10-859.png
>
>
> Here's the relevant discussion around having a GraphQL component for OFBiz- 
> [https://lists.apache.org/thread.html/r2fd1decca7a71ae2270a0e2d1f03ed69a69253f68f957626c386a11a%40%3Cdev.ofbiz.apache.org%3E]
>  Also, add the capability for OFBiz to communicate with a GraphQL endpoint.
> Below repository contains GraphQL endpoint configuration for OFBiz. Further details can be found in README.
> https://github.com/girishvasmatkar/ofbiz-graphql
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)