Skip to content

Commit

Permalink
Indexes on booleans
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesbayly committed Feb 7, 2024
1 parent a3e933c commit 4f5a189
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion docs/build/graphql.md
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,9 @@ We currently support the following scalar types:
To improve query performance, index an entity field simply by implementing the `@index` annotation on a non-primary-key field (you can also use [composite indexes](#composite-index)).
However, we don't allow users to add `@index` annotation on any [JSON](graphql.md#json-type) object. By default, indexes are automatically added to foreign keys and for JSON fields in the database, but only to enhance query service performance.
`@index` annotations are not supported on any [JSON](graphql.md#json-type) object or a boolean field.
By default, indexes are automatically added to foreign keys and for JSON fields in the database, but only to enhance query service performance.
Here is an example.
Expand Down

0 comments on commit 4f5a189

Please sign in to comment.