Comments (7)
I am also having the same problem. The example from Strapi doc is not working
https://strapi.io/documentation/3.x.x/guides/graphql.html#query-api
Only workaround is to use a where clause but that returns an array of posts instead of a single post.
Not working:
query {
post(id: "3") {
title
byline
lead
content
}
}
Returns error:
"Undefined binding(s) detected when compiling SELECT query: select posts
.* from posts
where posts
.id
= ? limit ?"
Workaround:
query {
posts(where: {id:"3"}) {
title
byline
lead
content
}
}
Node: v10.15.0
Npm: 6.4.1
Strapi: 3.0.0.alpha 21
OS: Windows 10
Database: MySQL
from strapi-examples.
Alpha 23.1, same issue too.
But I found the error point maybe.
Changing plugins/graphql/service/Query.js
from
...this.convertToParams(_.omit(_options, 'where')),
..._options.where,
to
...this.convertToParams(_.omit(_options, 'where')),
..._options,
..._options.where,
makes working right temporary.
from strapi-examples.
Having the same issue here on Strapi version 3.0.0-alpha.22. The referenced issue #2396 (which was fixed in alpha 22) appears to be a different issue entirely since this is still broken in alpha 22.
from strapi-examples.
I am also facing the same issue. Please provide solution at the earliest as it is stopping me alot. Thanks in advance. I was using 3.0.0.alpha 21, now upgraded to 3.0.0.alpha 22 still i am facing same issues :(
from strapi-examples.
from strapi-examples.
Workaround is to use mongodb - in stage 1 - setup they use MongoDB (recommended).
Got here because I had the same issue, but using Postgres. I did not get this problem when using MongoDB.
from strapi-examples.
I close this issue, can you check on the mono repo if this issue exist.
It's not related to the example but look like related to the GraphQL plugin.
from strapi-examples.
Related Issues (20)
- Issues installing and running 'login-react' HOT 1
- The hello world example is not available HOT 1
- Azure CosmosDB connection issue
- Installing dependencies for login-react causes problems HOT 1
- Providers: Incomplete field "The redirect URL to add in your Google application configurations" HOT 2
- Auth providers in production
- Google Oauth for admin users
- nuxt-strapi-deliveroo-clone-tutorial BUGS
- frontend shouldn't decide of the order price HOT 1
- Error: Request failed with status code 404 HOT 7
- Chessecakes example could need updating
- Twitter login seems to be broken
- .
- Google auth not working HOT 6
- Login react works with electron js?
- gatsby-source-strapi 403 error from starter HOT 1
- Next.JS-snipcart-strapi-printful
- broken link in documentation
- Readme Setup - git clone permission error HOT 1
- Need an example for Microsoft authentication
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from strapi-examples.