GraphQL Support in Flogo Enterprise

With the recent release of Flogo Enterprise 2.6 (please take your time to take a look at the release notes to know all the news that have been released), it has been included support to GraphQL.

GraphQL Schema Definition
  • Queries are GET-style request to get information. In our case, we have two queries currentUser and company.
  • Mutations are POST/PUT-style request to modify information. In our case, we have three mutations: registerUser, registerCompany, asignUser.
  • Model is the different objects and types our queries and mutations interact with.
Creation form of the new app named GraphQL_Sample_V1
  • Swagger specification
  • GraphQL Schema
Autogenerated flows based on GraphQL schema
Query_currentUser flow
Photo by Yvette de Wit on Unsplash
Build option to windows
GraphQL Flogo app running in Windows console
“query” : “query($email: String!) { currentUser( email: $email) { id firstName email } }”,
“variables” : {“email” : “” }
Postman Execution of GraphQL
“query” : “query($email: String!) { currentUser( email: $email) { id } }”,
“variables” : {“email” : “” }
GraphQL output with only returning id

PSG Senior Architect at TIBCO Software with a focus on Cloud Development, Event Processing and Enterprise Integration

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store