From 4f5a1899a1d676fd4eeeefbe91c10ae45cd2a7bd Mon Sep 17 00:00:00 2001 From: James Bayly Date: Wed, 7 Feb 2024 09:31:38 +0900 Subject: [PATCH] Indexes on booleans --- docs/build/graphql.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/build/graphql.md b/docs/build/graphql.md index 09471b60339..3939d426534 100644 --- a/docs/build/graphql.md +++ b/docs/build/graphql.md @@ -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.