GithubHelp home page GithubHelp logo

Comments (3)

chasegiunta avatar chasegiunta commented on September 24, 2024

@rlapierre-kffein oof, I have no experience with GraphQL, and wouldn't know where to begin. I'd be more than happy to merge a PR though, if you have an idea how to fix it for your use-case...

from craft-jason.

rlapierre-kffein avatar rlapierre-kffein commented on September 24, 2024

Hi thanks for your quick reply!
Using your plugin on a GraphQL instance I'm getting this data structure. I'm looking for a way to format this JSON inside the GraphQL query. I started to make a directive for it (JsonFormatter) but it always returning an StdClass. I'm still troubleshooting.

{ "data": { "globalSets": [ { "id": "2", "title": null, "commons_i18n": "{\r\n \"section\": {\r\n \"global_experience\": {\r\n \"title\": \"Boutique experience.\\nGlobal agency resources.\",\r\n \"cta\": {\r\n \"label\": \"Contact\",\r\n \"url\": \"fr/contact\"\r\n }\r\n },\r\n \"footer\": {\r\n \"privacy_policy\": \"Politique de confidentialité\"\r\n },\r\n \"careers\": {\r\n \"form\": {\r\n \"title\": \"Envoyer nous votre CV\",\r\n \"name\": \"Votre nom\",\r\n \"email\": \"Votre courriel\",\r\n \"message\": \"Votre message\",\r\n \"resume\": \"Votre résumé\",\r\n \"file\": \"Choisir un fichier\",\r\n \"submit\": \"Soumettre\"\r\n }\r\n }\r\n }\r\n}" } ] } }

from craft-jason.

chasegiunta avatar chasegiunta commented on September 24, 2024

@rlapierre-kffein Did you ever tackle this? I may ask for some help with some GraphQL friends to see the route to take here

from craft-jason.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.