Sign Up Now!

Sign up and get personalized intelligence briefing delivered daily.

Sign Up

Articles related to "syntax"

Apollo-Server-Express 1.0 to 2.0: Fix 'graphiqlExpress and graphiqlExpress is not a function'

  • Unlike REST API where we consume different endpoints depending on the resource we need, in GraphQL you only need one for everything.
  • As of August 2018, ApolloServer has migrated from 1.0 to 2.0 with significant changes to the patterns and code (see here and here).
  • The tutorial divides the language types in a schema directory, which is great for code maintainability, but it also means you have to include the tag per file (_input.js, _mutation.js, _query.js, _type.js, graphql/index.js).
  • Moreover, graphiqlExpress and graphiqlExpress are replaced by ApolloServer, which you can wrap as a middleware to app.
  • GraphiQLExpress and GraphQLExpress have been replaced by ApolloServer with the additional typeDefs and resolvers as parameters.
  • Take note of the schema variable, as it is imported in graphql/index.js.
  • If you followed the instructions properly, the GraphQL Playground should show up in your specified endpoint.

save | comments | report | share on

Show HN: Sublime Merge – Git, Done Sublime

  • In the center pane is the resolved text, with buttons to choose between your changes or theirs.
  • Use Ctrl+S⌘+S or the Save button to save your merged file.
  • With a powerful, cross-platform UI toolkit, an unmatched syntax highlighting engine, and a custom high-performance Git reading library, Sublime Merge sets the bar for performance.
  • Open the Blame of a file through the Command Palette or when viewing a commit to see exactly which lines of the file were added by which commits.
  • This includes when you rename or move a file, when you're resolving conflicts or just viewing commit history.
  • The Command Palette is triggered by Ctrl+P⌘+P and allows quick access to a large set of Git commands as well as other Sublime Merge functionality.
  • Key bindings, menus, theming, and the command palette are all customizable with simple JSON files.

save | comments | report | share on