Giter Site home page Giter Site logo

grandstack.io's People

Contributors

andrewgodwin86 avatar aurlien avatar cmartin81 avatar cuppajoeman avatar g3rd avatar harked avatar hedefalk avatar johnymontana avatar kazche avatar manonthemat avatar michaeldgraham avatar mohamedgamalabugalala avatar muellerphilipp avatar udaykor avatar viktorstrate avatar wheresrhys avatar wworrall avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

grandstack.io's Issues

Change index page title

from GRANDstack | GRANDstack

to site.title + description

"GRANDstack | Build fullstack GraphQL applications with ease"

GraphQL syntax highlighting doesn't handle multi-line string argument for directives

Multi-line string arguments are frequently used with the @cypher directive, however the Prism syntax highlighter doesn't recognize these strings as multi-line strings and syntax highlights them as GraphQL.

For example:

type Business {
    businessId: ID!
    averageStars: Float! @cypher(statement:"MATCH (this)<-[:REVIEWS]-(r:Review) RETURN avg(r.stars)")
    recommended(first: Int = 1): [Business] @cypher(statement: """
      MATCH (this)<-[:REVIEWS]-(:Review)<-[:WROTE]-(:User)-[:WROTE]->(:Review)-[:REVIEWS]->(rec:Business)
      WITH rec, COUNT(*) AS score
      RETURN rec ORDER BY score DESC LIMIT $first
    """)
    name: String!
    city: String!
    state: String!
    address: String!
    location: Point!
    reviews: [Review] @relation(name: "REVIEWS", direction: "IN")
    categories: [Category] @relation(name: "IN_CATEGORY", direction: "OUT")
}

Screen Shot 2020-05-18 at 6 56 15 AM

Add language indicator to each code snippet

There is a mix of Cypher, javascript, graphql typedefs vs queries, java, shell commands, etc

Add an indicator to each snippet so the reader can see clearly what language the code snippet is referencing.

Perhaps use the tabbed navigation (with a single tab) as a precursor to when we have multiple language examples (javascript and java, etc)

Add "Querying With GraphQL" page

Use one of the example GraphQL schemas (either movies or business reviews) and show the features of the generated GraphQL API with GraphQL query examples (and GraphiQL).

Also show the generated Cypher queries in a tab.

Demonstrate:

  • Query field per type
  • Generated query field arguments
  • Ordering
  • Selection set
  • Nested selections
  • Nested field arguments
  • Filtering (basic)
  • Cypher directive fields

Who is the audience for this page? (new to GraphQL? new to Neo4j?)

How does this impact other pages with similar content?

Embed GraphiQL examples

Since docs files are now MDX, React components and JSX can easily be embedded. Embed GraphiQL examples showing features using the movies.grandstack.io schema for relevant pages

Move cypher directive content to its own page

The cypher directive feature is powerful enough that it should have its own page, with examples showing:

  • computed scalar fields
  • computed object and array fields
  • custom top level query fields
  • custom top level mutation fields
  • use cases for the above
  • using cypher / GraphQL field parameters
  • using context values

Additionally, consider adding a guide to show best practice usage of above (and what not to do)

Add "How to use this site" page

Explain difference between docs pages and guide pages.
Use 2 consistent GraphQL schemas (movies and businesses) throughout. Link to code for the GraphQL APIs and link to Codesandbox examples for them (using neo4j demo databases)

Update get started "GRAND" Diagram

Will try to put some time aside and attempt to create a more decent diagram, but if someone else can do that meanwhile, please do so.

This is diagram takes me 20 years back.
Nothing wrong with its contents, but its way to ugly to look at 🙈 sorry.

Add syntax highlighter for Cypher

Docusaurus v2 uses Prism which does not have a Cypher mode. Figure out how to add a custom language mode and add locally, or contribute back to Prism

Rework neo4j-graphql.js User Guide page

This page

grandstack.io/docs/neo4j-graphql-js.html

has a sub-optimal example and flow (usage of neo4jgraphql function, outdated apollo server and neo4j driver example)

Update the example to be more prescriptive of the optimal way to use neo4j-graphql.js and rework the flow of the page.

Fixes for mobile

The landing page has some weird margin on the right on mobile.

F34FAFAA-7A4D-4672-921F-F8FA8B9F0440

Also video embeds seems to be fixed width, which are too wide for mobile

AAE85E3E-4EE0-4BB8-A282-F3505BF474BA

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.