From f3f5d45cb3dbfba57cfa8fdb24d39d87c8bcb3d5 Mon Sep 17 00:00:00 2001 From: David McAfee Date: Mon, 20 Feb 2023 14:17:56 -0800 Subject: [PATCH 1/2] fix(data): remove SK references from DataStore docs --- .../lib-v1/datastore/android/relational/updated-schema.mdx | 2 +- .../graphqlapi/native_common/advanced-workflows/common.mdx | 2 +- .../lib/datastore/android/relational/updated-schema.mdx | 2 +- .../lib/datastore/flutter/relational/updated-schema.mdx | 2 +- src/fragments/lib/datastore/js/relational/updated-schema.mdx | 2 +- .../graphqlapi/native_common/advanced-workflows/common.mdx | 4 ++-- 6 files changed, 7 insertions(+), 7 deletions(-) diff --git a/src/fragments/lib-v1/datastore/android/relational/updated-schema.mdx b/src/fragments/lib-v1/datastore/android/relational/updated-schema.mdx index 77597c928fd..2c3f13786bd 100644 --- a/src/fragments/lib-v1/datastore/android/relational/updated-schema.mdx +++ b/src/fragments/lib-v1/datastore/android/relational/updated-schema.mdx @@ -18,7 +18,7 @@ type Post @model { # New model type Comment @model { id: ID! - postID: ID! @index(name: "byPost", sortKeyFields: ["content"]) + postID: ID! @index(name: "byPost") post: Post! @belongsTo(fields: ["postID"]) content: String! } diff --git a/src/fragments/lib-v1/graphqlapi/native_common/advanced-workflows/common.mdx b/src/fragments/lib-v1/graphqlapi/native_common/advanced-workflows/common.mdx index 7c5d439b894..07af39c1c80 100644 --- a/src/fragments/lib-v1/graphqlapi/native_common/advanced-workflows/common.mdx +++ b/src/fragments/lib-v1/graphqlapi/native_common/advanced-workflows/common.mdx @@ -97,7 +97,7 @@ type Post @model { type Comment @model { id: ID! - postID: ID! @index(name: "byPost", sortKeyFields: ["content"]) + postID: ID! @index(name: "byPost") post: Post! @belongsTo(fields: ["postID"]) content: String! } diff --git a/src/fragments/lib/datastore/android/relational/updated-schema.mdx b/src/fragments/lib/datastore/android/relational/updated-schema.mdx index 62225edfd53..e6f5063572e 100644 --- a/src/fragments/lib/datastore/android/relational/updated-schema.mdx +++ b/src/fragments/lib/datastore/android/relational/updated-schema.mdx @@ -18,7 +18,7 @@ type Post @model { # New model type Comment @model { id: ID! - postID: ID! @index(name: "byPost", sortKeyFields: ["content"]) + postID: ID! @index(name: "byPost") post: Post! @belongsTo(fields: ["postID"]) content: String! } diff --git a/src/fragments/lib/datastore/flutter/relational/updated-schema.mdx b/src/fragments/lib/datastore/flutter/relational/updated-schema.mdx index 909cba8c130..4faa81ea568 100644 --- a/src/fragments/lib/datastore/flutter/relational/updated-schema.mdx +++ b/src/fragments/lib/datastore/flutter/relational/updated-schema.mdx @@ -18,7 +18,7 @@ type Post @model { # New model type Comment @model { id: ID! - postID: ID! @index(name: "byPost", sortKeyFields: ["content"]) + postID: ID! @index(name: "byPost") post: Post! @belongsTo(fields: ["postID"]) content: String! } diff --git a/src/fragments/lib/datastore/js/relational/updated-schema.mdx b/src/fragments/lib/datastore/js/relational/updated-schema.mdx index e18a591a09d..c5d4cb6fd99 100644 --- a/src/fragments/lib/datastore/js/relational/updated-schema.mdx +++ b/src/fragments/lib/datastore/js/relational/updated-schema.mdx @@ -18,7 +18,7 @@ type Post @model { # New model type Comment @model { id: ID! - postID: ID! @index(name: "byPost", sortKeyFields: ["content"]) + postID: ID! @index(name: "byPost") post: Post! @belongsTo(fields: ["postID"]) content: String! } diff --git a/src/fragments/lib/graphqlapi/native_common/advanced-workflows/common.mdx b/src/fragments/lib/graphqlapi/native_common/advanced-workflows/common.mdx index 746effd5e13..5d89603c303 100644 --- a/src/fragments/lib/graphqlapi/native_common/advanced-workflows/common.mdx +++ b/src/fragments/lib/graphqlapi/native_common/advanced-workflows/common.mdx @@ -105,14 +105,14 @@ type Post @model { type Comment @model { id: ID! - postID: ID! @index(name: "byPost", sortKeyFields: ["content"]) + postID: ID! @index(name: "byPost") post: Post! @belongsTo(fields: ["postID"]) content: String! } type Note @model { id: ID! - postID: ID! @index(name: "byNote", sortKeyFields: ["content"]) + postID: ID! @index(name: "byNote") post: Post! @belongsTo(fields: ["postID"]) content: String! } From 32ee9b943ae54be4eaa854a08f29be91aaeb435b Mon Sep 17 00:00:00 2001 From: David McAfee Date: Mon, 20 Feb 2023 14:49:02 -0800 Subject: [PATCH 2/2] remove unintended updates --- .../graphqlapi/native_common/advanced-workflows/common.mdx | 2 +- .../graphqlapi/native_common/advanced-workflows/common.mdx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/fragments/lib-v1/graphqlapi/native_common/advanced-workflows/common.mdx b/src/fragments/lib-v1/graphqlapi/native_common/advanced-workflows/common.mdx index 07af39c1c80..7c5d439b894 100644 --- a/src/fragments/lib-v1/graphqlapi/native_common/advanced-workflows/common.mdx +++ b/src/fragments/lib-v1/graphqlapi/native_common/advanced-workflows/common.mdx @@ -97,7 +97,7 @@ type Post @model { type Comment @model { id: ID! - postID: ID! @index(name: "byPost") + postID: ID! @index(name: "byPost", sortKeyFields: ["content"]) post: Post! @belongsTo(fields: ["postID"]) content: String! } diff --git a/src/fragments/lib/graphqlapi/native_common/advanced-workflows/common.mdx b/src/fragments/lib/graphqlapi/native_common/advanced-workflows/common.mdx index 5d89603c303..746effd5e13 100644 --- a/src/fragments/lib/graphqlapi/native_common/advanced-workflows/common.mdx +++ b/src/fragments/lib/graphqlapi/native_common/advanced-workflows/common.mdx @@ -105,14 +105,14 @@ type Post @model { type Comment @model { id: ID! - postID: ID! @index(name: "byPost") + postID: ID! @index(name: "byPost", sortKeyFields: ["content"]) post: Post! @belongsTo(fields: ["postID"]) content: String! } type Note @model { id: ID! - postID: ID! @index(name: "byNote") + postID: ID! @index(name: "byNote", sortKeyFields: ["content"]) post: Post! @belongsTo(fields: ["postID"]) content: String! }