Skip to content

Commit 0a0412e

Browse files
committed
update query
1 parent 5cc3329 commit 0a0412e

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

test/userInfo.gql

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
# # LIMITATIONS ON EXTERNAL USE: external users are only allowed to depend
2+
# # on certain fields exposed in this query. No backwards compatibility
3+
# # guarantees are made for the fields marked "DISALLOWED".
4+
#
5+
# external_query = true
6+
# roles = ["default"]
7+
18
query UserInfo {
29
users(limit: 1) {
310
id
@@ -6,13 +13,17 @@ query UserInfo {
613
emails {
714
email
815
}
16+
# DISALLOWED: .features is disallowed for external users
17+
# No guarantees are made about the contents or validity of this field.
918
features: user_feature_maps {
1019
feature {
1120
name
1221
id
1322
product_id
1423
}
1524
}
25+
# DISALLOWED: .get_started_viewed is disallowed for external users
26+
# No guarantees are made about the contents or validity of this field.
1627
get_started_viewed
1728
groups: user_groups(where: { _not: { is_deleted: { _eq: true } } }) {
1829
id: group_id
@@ -30,9 +41,13 @@ query UserInfo {
3041
}
3142
}
3243
accepted_tos
44+
# DISALLOWED: .accepted_tos_time is disallowed for external users
45+
# No guarantees are made about the contents or validity of this field.
3346
accepted_tos_time
3447
survey_submitted_time
3548
}
49+
# DISALLOWED: .features is disallowed for external users
50+
# No guarantees are made about the contents or validity of this field.
3651
features(where: { public: { _eq: true } }) {
3752
id
3853
name

0 commit comments

Comments
 (0)