mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-14 08:02:15 +03:00
feature(server): CockroachDB now supports distinct. Document and test
PR-URL: https://github.com/hasura/graphql-engine-mono/pull/8596 GitOrigin-RevId: 3dbc5fccb1d4387041a5a80794158c4f50b70848
This commit is contained in:
parent
c08dc03d72
commit
ed4f3b7406
@ -29,9 +29,8 @@ Currently, the following features are supported with CockroachDB and Hasura:
|
||||
|
||||
## Queries
|
||||
|
||||
Queries are fully supported except for queries containing `distinct_on` arguments, [see issue](https://github.com/cockroachdb/cockroach/issues/90763), but please note that GraphQL key
|
||||
ordering in JSON objects is not guaranteed. This is because CockroachDB implements the `JSONB` variant of the Postgres
|
||||
JSON types, which do not preserve key ordering.
|
||||
Queries are fully supported, but please note that GraphQL key ordering in JSON objects is not guaranteed.
|
||||
This is because CockroachDB implements the `JSONB` variant of the Postgres JSON types, which do not preserve key ordering.
|
||||
|
||||
Please also note that SERIAL columns will produce numbers that overflow JavaScript numbers. These will need special
|
||||
treatment by either enabling the
|
||||
|
@ -10,6 +10,7 @@ import Data.Aeson (Value)
|
||||
import Data.List.NonEmpty qualified as NE
|
||||
import Harness.Backend.BigQuery qualified as BigQuery
|
||||
import Harness.Backend.Citus qualified as Citus
|
||||
import Harness.Backend.Cockroach qualified as Cockroach
|
||||
import Harness.Backend.Postgres qualified as Postgres
|
||||
import Harness.GraphqlEngine (postGraphql)
|
||||
import Harness.Quoter.Graphql (graphql)
|
||||
@ -36,6 +37,11 @@ spec = do
|
||||
[ Citus.setupTablesAction schema testEnv
|
||||
]
|
||||
},
|
||||
(Fixture.fixture $ Fixture.Backend Cockroach.backendTypeMetadata)
|
||||
{ Fixture.setupTeardown = \(testEnv, _) ->
|
||||
[ Cockroach.setupTablesAction schema testEnv
|
||||
]
|
||||
},
|
||||
(Fixture.fixture $ Fixture.Backend BigQuery.backendTypeMetadata)
|
||||
{ Fixture.setupTeardown = \(testEnv, _) ->
|
||||
[ BigQuery.setupTablesAction schema testEnv
|
||||
|
Loading…
Reference in New Issue
Block a user