Query fetches data forever
See original GitHub issueAfter upgrading to preview024, my server started not working. When I have the following models and schema, fetching the data with the query listed correctly returns the response, but after upgrading to the latest version it started fetching data forever (the red square in the playground remains there). I use PostgreSQL 12.
schema.prisma
model Record {
address String @default("")
id Int @default(autoincrement()) @id
lat Float @default(0)
lng Float @default(0)
name String @default("")
type RecordType
}
schema.ts (with nexus-prisma 0.11.1
)
const Record = objectType({
name: "Record",
definition(t) {
t.model.id();
t.model.lat();
t.model.lng();
t.model.address();
t.model.name();
t.model.type();
}
});
server.ts (with apollo-server 2.11.0
)
import { ApolloServer } from "apollo-server";
import { schema } from "./schema";
import { createContext } from "./context";
new ApolloServer({ schema, context: createContext }).listen();
query
query {
users {
id
}
}
return with prisma2@preview023
{
"data": {
"users": [
{
"id": 1
}
]
}
}
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
Dealing with mysql fetching forever - Stack Overflow
I have a mysql table with a million records. When i execute a particular query with a limit of 1000 ;. I get...
Read more >Forever fetching zero-row data frame when query is killed at ...
If the query is killed at server side (e.g. done in MySQL Workbench), the while loop runs forever getting zero-row data frame in...
Read more >Fetch a query only once until page refresh using React Query
Based on their docs stale queries are re-fetched automatically in the background when:
Read more >query taking long time to fetch data - Oracle Communities
Among such sql queries there is a sql query which takes around 20 minutes to fetch data from oracle database through the custom...
Read more >Slow fetch time for MySQL query with large result set
In MySQL Workbench's Duration / Fetch Time columns, the duration stays consistently under 1ms, regardless of the number of rows selected.
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I have the same issue. When run with
cross-env DEBUG=*
, I get this output:This is likely not a Windows-specific issue, as I got a similar output when run on Heroku:
I suspect it’s caused by #1759 missing some occurrences of
--enable_raw_queries
.Same output observed with
prisma2@alpha
(resolves toprisma2@2.0.0-alpha.910
).@pantharshit00 It worked with the same versions, thank you!
P.S. I once posted from my personal account… sorry!