Giter Club home page Giter Club logo

qix-graphql's Issues

Client examples: node.js

The beauty of GraphQL is that it works with many programming languages. Let's provide some examples with the most popular languages.

  • Basic code example
  • Test
  • Integrate test into CircleCI

Action required: Greenkeeper could not be activated 🚨

🚨 You need to enable Continuous Integration on all branches of this repository. 🚨

To enable Greenkeeper, you need to make sure that a commit status is reported on all branches. This is required by Greenkeeper because we are using your CI build statuses to figure out when to notify you about breaking changes.

Since we did not receive a CI status on the greenkeeper/initial branch, we assume that you still need to configure it.

If you have already set up a CI for this repository, you might need to check your configuration. Make sure it will run on all new branches. If you don’t want it to run on every branch, you can whitelist branches starting with greenkeeper/.

We recommend using Travis CI, but Greenkeeper will work with every other CI service as well.

Once you have installed CI on this repository, you’ll need to re-trigger Greenkeeper’s initial Pull Request. To do this, please delete the greenkeeper/initial branch in this repository, and then remove and re-add this repository to the Greenkeeper integration’s white list on Github. You'll find this list on your repo or organization’s settings page, under Installed GitHub Apps.

Change the basic endpoints

Environment mode:

  • / - Basically just showing HATEOAS links, later on some basic UI
  • /env/graphiql/ - Starting graphiql for the env mode

App mode:

  • /app/:id/graphiql/- GraphiQL for the specifc app

Action required: Greenkeeper could not be activated 🚨

🚨 You need to enable Continuous Integration on all branches of this repository. 🚨

To enable Greenkeeper, you need to make sure that a commit status is reported on all branches. This is required by Greenkeeper because we are using your CI build statuses to figure out when to notify you about breaking changes.

Since we did not receive a CI status on the greenkeeper/initial branch, we assume that you still need to configure it.

If you have already set up a CI for this repository, you might need to check your configuration. Make sure it will run on all new branches. If you don’t want it to run on every branch, you can whitelist branches starting with greenkeeper/.

We recommend using Travis CI, but Greenkeeper will work with every other CI service as well.

Once you have installed CI on this repository, you’ll need to re-trigger Greenkeeper’s initial Pull Request. To do this, please delete the greenkeeper/initial branch in this repository, and then remove and re-add this repository to the Greenkeeper integration’s white list on Github. You'll find this list on your repo or organiszation’s settings page, under Installed GitHub Apps.

Installation / Usage instructions do not work

Attempting to follow the installation and usage instructions on the README to get started, docker-compose up fails because the compose file relies on an environment variable QIX_ENGINE_VER:latest:

from docker-compose.yml:

qix:
    container_name: qix
    image: "qlikcore/engine:${QIX_ENGINE_VER:latest}"
    command: [
      "-S", "DocumentDirectory=/docs",
      "-S", "AcceptEULA=yes"
    ]

Client examples: c#

The beauty of GraphQL is that it works with many programming languages. Let's provide some examples with the most popular languages.

  • Basic code example
  • Test
  • Integrate test into CircleCI

Ability to run this API against any Core instance?

Currently, it appears that when you use this package, it spins up its own Core instance and hooks into that to give you access to GraphQL queries for that specific instance. Is there a way to leverage that GraphQL query layer with any Core instance? That would be much more desirable to me. For example, I've got several Core containers running on my machine related to various projects. I'd love to leverage the GraphQL query layer as an independent service that I can use with any of those instances as needed.

Data type conversion

Currently the different data types are not handled properly, this needs to be fixed and tested.

Experiment with stateful vs stateless

It would be interesting to run the GraphQL server in two different modes (based on configuration):

  • Stateful
    • ws connection remains open
    • user can make selections
    • can get current selections
    • can execute a chain of commands
    • etc.
  • Stateless
    • always opening, closing, re-opening the ws-connection
    • do not allow the user to make selections
    • some mutations and queries should then just not be available
    • Basically the GraphQL server acts then like a connector to fetch data easily from a Qlik app

Action required: Greenkeeper could not be activated 🚨

🚨 You need to enable Continuous Integration on all branches of this repository. 🚨

To enable Greenkeeper, you need to make sure that a commit status is reported on all branches. This is required by Greenkeeper because we are using your CI build statuses to figure out when to notify you about breaking changes.

Since we did not receive a CI status on the greenkeeper/initial branch, we assume that you still need to configure it.

If you have already set up a CI for this repository, you might need to check your configuration. Make sure it will run on all new branches. If you don’t want it to run on every branch, you can whitelist branches starting with greenkeeper/.

We recommend using Travis CI, but Greenkeeper will work with every other CI service as well.

Once you have installed CI on this repository, you’ll need to re-trigger Greenkeeper’s initial Pull Request. To do this, please delete the greenkeeper/initial branch in this repository, and then remove and re-add this repository to the Greenkeeper integration’s white list on Github. You'll find this list on your repo or organization’s settings page, under Installed GitHub Apps.

Examples: Python

The beauty of GraphQL is that it works with many programming languages. Let's provide some examples with the most popular languages.

  • Basic code example
  • Test
  • Integrate test into CircleCI

Basic Documentation

  • Motivation
  • Background information / Key concepts
    • What is GraphQL
    • GraphQL Community / eco-system / programming languages
    • GraphiQL
  • Examples
    • node.js
    • go
    • Python
    • C#
  • How to set up
    • A demo environment
    • Dependencies
    • Run tests
    • Watchers

CircleCI

  • Basic CircleCI integration for both unit and integration tests

Client examples: go

The beauty of GraphQL is that it works with many programming languages. Let's provide some examples with the most popular languages.

  • Basic code example
  • Test
  • Integrate test into CircleCI

Some basic clean-up & refactoring

Code:

  • Move to async/await
    • ./app-server.js
  • Remove the /docs endpoint
  • Remove/Rename ./modules/app/sample-schema.js
  • health-check
  • Remove package-lock.json
  • Handle all Todo (AAA)
  • Rename modules to match resource thinking / endpoints
  • File ./prototyping-to-be-moved.js

Tests:

  • Simplify tests by moving to async/await
  • Removes logging from tests

Link to doc GraphiQL instance references the wrong host

Describe the bug
When following along with the README, it shows how you can use

_links {
  _doc
}

to get a url to a GraphiQL instance connected to a specific doc. In the README, the example gets hosted locally at localhost:3004. However, the response url that the API provides references qix-graphql instead of localhost as the host. Ex:

{
  "data": {
    "doc": {
      "_links": {
        "_doc": "http://qix-graphql:3004/app/%2Fdocs%2FConsumer%20Goods%20Example.qvf/graphql"
      }
    }
  }
}

To Reproduce
Steps to reproduce the behavior:

  1. Follow the instructions on the README to spin up GraphiQL
  2. Run a query like so to get the link for a doc:
{
  doc(qDocId: "/docs/Consumer Goods Example.qvf") {
    _links {
      _doc
    }
  }
}
  1. Look at the URL that is returned by the API call

Expected behavior
The URL should reference localhost as the host, not qix-graphql.

Make the qix-schema dynamic

The qix-schema is now hardcoded, but it actually should be dynamic based on the engine version.
Really not sure how to handle this the best way.

Why use Qlik if your using GraphQL

This probably sounds abit random but what extra value does qlik add to a project if your already using GraphQL? GraphQL is basically its own associative engine right? Im just struggling to think why would need Qlik if your already familliar with GraphQL.

CodeCov

  • Use CircleCI to send the code-coverage results to CodeCov.

Action required: Greenkeeper could not be activated 🚨

🚨 You need to enable Continuous Integration on all branches of this repository. 🚨

To enable Greenkeeper, you need to make sure that a commit status is reported on all branches. This is required by Greenkeeper because we are using your CI build statuses to figure out when to notify you about breaking changes.

Since we did not receive a CI status on the greenkeeper/initial branch, we assume that you still need to configure it.

If you have already set up a CI for this repository, you might need to check your configuration. Make sure it will run on all new branches. If you don’t want it to run on every branch, you can whitelist branches starting with greenkeeper/.

We recommend using Travis CI, but Greenkeeper will work with every other CI service as well.

Once you have installed CI on this repository, you’ll need to re-trigger Greenkeeper’s initial Pull Request. To do this, please delete the greenkeeper/initial branch in this repository, and then remove and re-add this repository to the Greenkeeper integration’s white list on Github. You'll find this list on your repo or organization’s settings page, under Installed GitHub Apps.

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.