question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Internal GraphQL schema marks JsonFilter types as DateTime

See original GitHub issue

Discussed in https://github.com/prisma/prisma/discussions/9116

<div type='discussions-op-text'>

Originally posted by RobertCraigie September 3, 2021 While looking into adding support for Json types to https://github.com/RobertCraigie/prisma-client-py I looked through the generated GraphQL schema and noticed that the JsonFilter type takes values of DateTime type, I would’ve expected to see either Json or String. Should be noted that this happens with and without the preview feature enabled.

Just curious as to whether or not this is intentional.

input JsonFilter {
  equals: DateTime
  not: DateTime
}

input JsonWithAggregatesFilter {
  equals: DateTime
  not: DateTime
  _count: NestedIntFilter
  count: NestedIntFilter
  _min: NestedJsonFilter
  min: NestedJsonFilter
  _max: NestedJsonFilter
  max: NestedJsonFilter
}
```</div>

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
janpiocommented, Sep 15, 2021

https://github.com/prisma/prisma-engines/pull/2152 got merged that should fix it 👍

1reaction
janpiocommented, Sep 3, 2021

Ah ok, one level deeper then. We usually treat this as an internal implementation detail - if there is something weird, we will of course still look at it.

Read more comments on GitHub >

github_iconTop Results From Across the Web

GraphQL schema basics
This schema defines a hierarchy of types with fields that are populated from your back-end data stores. The schema also specifies exactly which...
Read more >
Schemas and Types - GraphQL
We'll use the "GraphQL schema language" - it's similar to the query language, ... In the type language, we'll represent those with an...
Read more >
GraphQL Reporting API Schema - NextRoll API Documentation
The the internal EID of the AdGroupAd relationship, if such a EID exists and if the ad is listed inside an AdGroup. metrics...
Read more >
Working with Dates, Time, Timezones in GraphQL ... - Hasura
In this post, we will look at the various data/time types available through Postgres and exposed via GraphQL by Hasura.
Read more >
Search and Filtering - GraphQL - Dgraph
When a type contains an @search directive, Dgraph constructs a search input type and a query in the GraphQL Query type. For example,...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found