remorses / mongoke Goto Github PK
View Code? Open in Web Editor NEWHome Page: https://mongoke.now.sh/docs/
Home Page: https://mongoke.now.sh/docs/
A new release is on the way, i opened this issue to let people interested in this project share their opinions and ideas
Help me spread the word via twitter if you like the project!
The v2 will add features like
This project aims to make the frontend developers lifes better but usually frontend developers don't know how to use docker, so i decided to make a mongoke cli that starts the server without the need to install docker
Docker has also another problem, images get cached and you won't probably get the last varsion and features for a long time
This cli will
Mutations will give you a typed database client, this is useful given that mongodb has not a first class schema support, it will prevent many bugs related to inconsistencies to the schema design.
You could use the generated js client in a similar way you use now Prisma.
This will be based on the graphql-zeus or graphql-typed-client, let me know what you like more
This is a great time to request new breaking change features requests if you have any
Currently i am rewriting everything in golang to get better performance, using the knowledge already acquired making the python version
Hi there.
It appears the mongo operators are not properly instrumented when they appear inside arrays/lists. For example something like:
{and: [{field1: {eq: val1}}, {field2: {eq: val2}}]}
will not be properly resolved. Specifically, eq
will not be transformed to $eq
.
The issue seems to be because the code in the template mongoke/templates/resolvers_support.py
that does not recurse through lists (only dictionaries). Something like shirouto/mongoke@f88a539 seems to fix it.
Cheers
Hello @remorses, this project is awesome, very easy set up and deploy. But I have one question, does mongoke supports mutations? I'm planning on creating a database from scratch for insertion and query. Many thanks in advance.
This is just an improvement I thought about while demoing on a live stream today. But we had a type called Activity
and Mongoke made it Activitys
which is a wrong plural, should be "Activities"
on examples/authorization
| INFO: 172.18.0.1:46692 - "POST / HTTP/1.1" 500 Internal Server Error
mongoke_1 | 2020-11-29 09:28:35 httptools_impl ERROR Exception in ASGI application
mongoke_1 | Traceback (most recent call last):
mongoke_1 | File "/usr/local/lib/python3.7/site-packages/uvicorn/protocols/http/httptools_impl.py", line 385, in run_asgi
mongoke_1 | result = await app(self.scope, self.receive, self.send)
mongoke_1 | File "/usr/local/lib/python3.7/site-packages/uvicorn/middleware/proxy_headers.py", line 45, in __call__
mongoke_1 | return await self.app(scope, receive, send)
mongoke_1 | File "/usr/local/lib/python3.7/site-packages/starlette/middleware/errors.py", line 178, in __call__
mongoke_1 | raise exc from None
mongoke_1 | File "/usr/local/lib/python3.7/site-packages/starlette/middleware/errors.py", line 156, in __call__
mongoke_1 | await self.app(scope, receive, _send)
mongoke_1 | File "/usr/local/lib/python3.7/site-packages/starlette/middleware/base.py", line 25, in __call__
mongoke_1 | response = await self.dispatch_func(request, self.call_next)
mongoke_1 | File "./generated/middleware.py", line 26, in dispatch
mongoke_1 | if jwt_required:
mongoke_1 | NameError: name 'jwt_required' is not defined
Hello everyone, I've been trying to query the database using multiple fields, but the data always returns empty. I already made sure the records meets the conditions separately, but when I use the and:
operator, I returns empty. I also check the condition in the mongo shell. If anyone can give me a hand with this, I will appreciate it.
This returns records
query {
TransaccionalNodes(where: {state: {eq: "3"}}){
nodes {
_id
agente_id
state
}
}
}
# result
{
"data": {
"TransaccionalNodes": {
"nodes": [
{
"_id": "5edec4e584c4bffa20a64abb",
"agente_id": "52",
"state": "3"
},
{
"_id": "5edec3e984c4bffa20a64aba",
"agente_id": "52",
"state": "3"
},
{
"_id": "5edec2f484c4bffa20a64ab9",
"agente_id": "52",
"state": "3"
}
]
}
}
}
This doesn't
query {
TransaccionalNodes(where: {and: [{state: {eq: "3"}}, {agente_id: {eq: "52"}}]}){
nodes {
_id
agente_id
state
}
}
}
# result
{
"data": {
"TransaccionalNodes": {
"nodes": []
}
}
}
Hey sir, your app is amazing, but one thing I can't figure yet out.
I have a collection with flags:
-show [true|false]
-deleted [true|false]
-pinned [true|false]
First two of them are private. That mean, I need every graphql request they be equal as show=true AND deleted=false, and I can't expose them.
The third flag is public, so I will expose it and use in queries. Do I need to use pipeline key? I didn't see any examples of usage.
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.