A simple GraphQL API that implements subscriptions built with Python and Ariadne
mrkiura / chat_api_subscriptions Goto Github PK
View Code? Open in Web Editor NEWA GraphQL API that implements subscriptions built with Python and Ariadne
A GraphQL API that implements subscriptions built with Python and Ariadne
I couldn't run pip install
without removing it. Also, it seems that some of the deps like pandas
and numpy
don't exist for me. Not sure why.
subscription {
messages(userId: "2") {
content
senderId
recipientId
}
}
# When I run the above subscription I fetch this error:
{
"errors": [
{
"message": "Your GraphiQL createFetcher is not properly configured for websocket subscriptions yet. Please provide subscriptionUrl, wsClient or legacyClient option first.",
"stack": "Error: Your GraphiQL createFetcher is not properly configured for websocket subscriptions yet. Please provide subscriptionUrl, wsClient or legacyClient option first.\n at https://unpkg.com/[email protected]/graphiql.min.js:2:879063\n at https://unpkg.com/[email protected]/graphiql.min.js:2:728459\n at onClick (https://unpkg.com/[email protected]/graphiql.min.js:2:780784)\n at test.n.<computed> (https://unpkg.com/[email protected]/graphiql.min.js:2:144508)\n at Object.vi (https://unpkg.com/react-dom@17/umd/react-dom.production.min.js:202:330)\n at ui (https://unpkg.com/react-dom@17/umd/react-dom.production.min.js:32:27)\n at xi (https://unpkg.com/react-dom@17/umd/react-dom.production.min.js:32:81)\n at zg (https://unpkg.com/react-dom@17/umd/react-dom.production.min.js:55:403)\n at rg (https://unpkg.com/react-dom@17/umd/react-dom.production.min.js:56:317)\n at https://unpkg.com/react-dom@17/umd/react-dom.production.min.js:66:168"
}
]
}
# requirements.txt
anyio==4.0.0
ariadne==0.20.1
click==8.1.7
exceptiongroup==1.1.3
graphql-core==3.2.3
h11==0.14.0
httptools==0.6.1
idna==3.4
python-dotenv==1.0.0
PyYAML==6.0.1
sniffio==1.3.0
starlette==0.31.1
typing_extensions==4.8.0
uvicorn==0.23.2
uvloop==0.18.0
watchfiles==0.21.0
websockets==11.0.3
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.