Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

cubicweb-graphql

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cubicweb-graphql

GraphQL for CubicWeb

  • 0.2.2
  • PyPI
  • Socket score

Maintainers
1

=================== cubicweb-graphql

cubicweb-graphql_ provides a GraphQL_ interface and querier for CubicWeb.

.. _GraphQL:
https://graphql.org/

Basic use in Python

Once the CubicWeb instance has been launched, GraphQL queries can be executed using:

::

from cubicweb_graphql.querier import GraphQLQuerier

query = "query getAffaire($affaire_eid: ID) { Affaire(eid: $affaire_eid) { sujet } }"
result = GraphQLQuerier.execute(connection, query, affaire_eid=self.affaire1)

Access from the Web API

The GraphQL querier can be access through the Web API:

::

curl "http://localhost:8080/ajax" \
        -d "fname=graphql" \
        -d "query=$QUERY" \

.

Testing

Tests can be run using:

::

python -m unittest discover -s test

from top-level directory.

FAQs


Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc