From a28e4ebbab405ea0dc923b0ec34f2ccd8603cc76 Mon Sep 17 00:00:00 2001 From: Nonumpa Date: Thu, 7 Sep 2023 12:42:08 +0800 Subject: [PATCH 1/4] feat(YDoc): implement GetYdoc query and Ydoc model --- src/graphql/models/Ydoc.js | 24 ++++++++++++++++++++++++ src/graphql/models/YdocVersion.js | 13 +++++++++++++ src/graphql/queries/GetYdoc.js | 12 ++++++++++++ src/graphql/schema.js | 2 ++ 4 files changed, 51 insertions(+) create mode 100644 src/graphql/models/Ydoc.js create mode 100644 src/graphql/models/YdocVersion.js create mode 100644 src/graphql/queries/GetYdoc.js diff --git a/src/graphql/models/Ydoc.js b/src/graphql/models/Ydoc.js new file mode 100644 index 00000000..b853dea4 --- /dev/null +++ b/src/graphql/models/Ydoc.js @@ -0,0 +1,24 @@ +import { GraphQLObjectType, GraphQLString, GraphQLList } from 'graphql'; + +import YdocVersion from './YdocVersion'; + +const Ydoc = new GraphQLObjectType({ + name: 'Ydoc', + fields: () => ({ + data: { + type: GraphQLString, + // https://www.elastic.co/guide/en/elasticsearch/reference/current/binary.html + description: 'Binary that stores as base64 encoded string', + }, + versions: { + type: new GraphQLList(YdocVersion), + description: + 'Ydoc snapshots which are used to restore to specific version', + resolve: async ({ versions }) => { + return versions || []; + }, + }, + }), +}); + +export default Ydoc; diff --git a/src/graphql/models/YdocVersion.js b/src/graphql/models/YdocVersion.js new file mode 100644 index 00000000..677615ab --- /dev/null +++ b/src/graphql/models/YdocVersion.js @@ -0,0 +1,13 @@ +import { GraphQLObjectType, GraphQLString } from 'graphql'; + +export default new GraphQLObjectType({ + name: 'YdocVersion', + fields: () => ({ + createdAt: { type: GraphQLString }, + snapshot: { + type: GraphQLString, + // https://www.elastic.co/guide/en/elasticsearch/reference/current/binary.html + description: 'Binary that stores as base64 encoded string', + }, + }), +}); diff --git a/src/graphql/queries/GetYdoc.js b/src/graphql/queries/GetYdoc.js new file mode 100644 index 00000000..a854b28a --- /dev/null +++ b/src/graphql/queries/GetYdoc.js @@ -0,0 +1,12 @@ +import { GraphQLString } from 'graphql'; + +import Ydoc from 'graphql/models/Ydoc'; + +export default { + type: Ydoc, + args: { + id: { type: GraphQLString }, + }, + resolve: async (rootValue, { id }, { loaders }) => + loaders.docLoader.load({ index: 'ydocs', id }), +}; diff --git a/src/graphql/schema.js b/src/graphql/schema.js index 6f0543dd..e6e66bd9 100644 --- a/src/graphql/schema.js +++ b/src/graphql/schema.js @@ -5,6 +5,7 @@ import GetArticle from './queries/GetArticle'; import GetReply from './queries/GetReply'; import GetUser from './queries/GetUser'; import GetCategory from './queries/GetCategory'; +import GetYdoc from './queries/GetYdoc'; import ListArticles from './queries/ListArticles'; import ListReplies from './queries/ListReplies'; import ListCategories from './queries/ListCategories'; @@ -41,6 +42,7 @@ export default new GraphQLSchema({ GetReply, GetUser, GetCategory, + GetYdoc, ListArticles, ListReplies, ListCategories, From 366910dec643b8eadb445edfac8580dbd0f26f43 Mon Sep 17 00:00:00 2001 From: Nonumpa Date: Thu, 7 Sep 2023 12:47:08 +0800 Subject: [PATCH 2/4] test(Ydoc): test GetYdoc --- src/graphql/queries/__fixtures__/GetYdoc.js | 31 ++++++++++++++ src/graphql/queries/__tests__/GetYdoc.js | 40 +++++++++++++++++++ .../__tests__/__snapshots__/GetYdoc.js.snap | 40 +++++++++++++++++++ 3 files changed, 111 insertions(+) create mode 100644 src/graphql/queries/__fixtures__/GetYdoc.js create mode 100644 src/graphql/queries/__tests__/GetYdoc.js create mode 100644 src/graphql/queries/__tests__/__snapshots__/GetYdoc.js.snap diff --git a/src/graphql/queries/__fixtures__/GetYdoc.js b/src/graphql/queries/__fixtures__/GetYdoc.js new file mode 100644 index 00000000..a26c8f3b --- /dev/null +++ b/src/graphql/queries/__fixtures__/GetYdoc.js @@ -0,0 +1,31 @@ +export default { + '/ydocs/doc/foo': { + data: + 'B0Oav/LNDwAnAQV1c2VyczB7ImlkIjoiQVdBX1BiT2J5Q2RTLW5XaHVrcS0iLCJuYW1lIjoi6Y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eICAYPVpIP8A/YCCgHVpIP8AwHiAgGD1aSD/AP3AgoB1aSD/AMB4gIBg9Wkg/wD+AIKAdWkg/wDAeICAYPVpIP8A/kCCgHVpIP8AwHiAgGD1aSD/AP6AgoB1aSD/AMB4gIBg9Wkg/wD+wIKAdWkg/wDAeICAYPVpIP8A/wCCgHVpIP8AwHiAgGD1aSD/AP9AgoB1aSD/AMB4gIBg9Wkg/wD/gIKAdWkg/wDAeICAYPVpIP8A/8CCgHVpIP8AwHiAgGD1aSD/AOAAwoB1aSD/AMB4gIBg9Wkg/wDgQMKAdWkg/wDAeICAYPVpIP8A4IDCgHVpIP8AwHiAgGD1aSD/AODAwoB1aSD/AMB4gIBg9Wkg/wDhAMKAdWkg/wDAeICAYPVpIP8A4UDCgHVpIP8AwHiAgGD1aSD/AOGAwoB1aSD/AMB4gIBg9Wkg/wDhwMKAdWkg/wDAeICAYPVpIP8A4gDCgHVpIP8AwHiAgGD1aSD/AOJAwoB1aSD/AMB4gIBg9Wkg/wDigMKAdWkg/wDAeICAYPVpIP8A4sDCgHVpIP8AwHiAgGD1aSD/AOMAwoB1aSD/AMB4gIBg9Wkg/wDjQMKAdWkg/wDAeICAYPVpIP8A44DCgHVpIP8AwHiAgGI1aSD/APkAgF9lcmG+AeE1aSD/APiAgExiNWkg/wDkAMBfZXJhvgHA5q/8s0PAhkBGwHykajhDAgJAQwNGwEfASMBPgFAAU0B1aSD/AMHFgEZAh0BRkCcAQLtARLiAgE=', + versions: [ + { + createdAt: '2023-09-07T08:14:14.005Z', + snapshot: 'AZq/8s0PAhkBGwEBmr/yzQ9I', + }, + { + createdAt: '2023-09-07T08:16:45.613Z', + snapshot: + 'Apq/8s0PAhkBGwHykajhDAIbAU0BBJq/8s0PSPKRqOEMctTKkPALA/XmkdAEAw==', + }, + { + createdAt: '2023-09-07T08:18:32.467Z', + snapshot: + 'A5q/8s0PAhkBGwHykajhDAgJAQwNGwEfASMBPgFAAU0B1aSD/AMHFgEZAh0BRkCcAQLtARLiAgEGmr/yzQ9ImM7mmA0D8pGo4Qxy1MqQ8AsD9eaR0AQD1aSD/AOTAw==', + }, + { + createdAt: '2023-09-07T08:18:49.500Z', + snapshot: + 'A5q/8s0PAhkBGwHykajhDAgJAQwNGwEfASMBPgFAAU0B1aSD/AMHFgEZAh0BRkCcAQLtARLiAgEHmr/yzQ9ImM7mmA0D8pGo4Qxy1MqQ8AsD1KewoQgN9eaR0AQD1aSD/AOTAw==', + }, + ], + }, + '/ydocs/doc/foo2': { + data: + 'AgzOmK+vDwAnAQV1c2VyczB7ImlkIjoiQVdBX1BiT2J5Q2RTLW5XaHVrcS0iLCJuYW1lIjoi6YKK57ej5Lq6In0BJwDOmK+vDwADaWRzACcAzpivrw8AAmRzAAgAzpivrw8BBXtB7r15icAAAHtB7r15icAAAHtB7r15icAAAHtB7r15icAAAHtB7r15icAAAAcBC3Byb3NlbWlycm9yAwlwYXJhZ3JhcGgHAM6Yr68PCAYEAM6Yr68PCQExiM6Yr68PBwJ7Qe69eYnAAAB7Qe69eYnAAACEzpivrw8KATKIzpivrw8MAXtB7r15icAAAITOmK+vDw0BM4jOmK+vDw4Be0HuvXmJwAAACvmO4JABAIjOmK+vDxAFfbmdwKECfbmdwKECfbmdwKECfbmdwKECfbmdwKECh86Yr68PCAMJcGFyYWdyYXBoiPmO4JABBAJ9uZ3AoQJ9uZ3AoQIHAPmO4JABBQYEAPmO4JABCAE0iPmO4JABBwJ9uZ3AoQJ9uZ3AoQKE+Y7gkAEJATWI+Y7gkAELAX25ncChAoT5juCQAQwBNoj5juCQAQ0BfbmdwKECAA==', + }, +}; diff --git a/src/graphql/queries/__tests__/GetYdoc.js b/src/graphql/queries/__tests__/GetYdoc.js new file mode 100644 index 00000000..6d2eecfe --- /dev/null +++ b/src/graphql/queries/__tests__/GetYdoc.js @@ -0,0 +1,40 @@ +import gql from 'util/GraphQL'; +import { loadFixtures, unloadFixtures } from 'util/fixtures'; +import fixtures from '../__fixtures__/GetYdoc'; + +describe('GetYdoc', () => { + beforeAll(() => loadFixtures(fixtures)); + afterAll(() => unloadFixtures(fixtures)); + + it('should get the specified doc', async () => { + expect( + await gql` + { + GetYdoc(id: "foo") { + data + versions { + createdAt + snapshot + } + } + } + `({}, { user: { id: 'test', appId: 'test' } }) + ).toMatchSnapshot(); + }); + + it('should return empty versions when there is none', async () => { + expect( + await gql` + { + GetYdoc(id: "foo2") { + data + versions { + createdAt + snapshot + } + } + } + `({}, { user: { id: 'test', appId: 'test' } }) + ).toMatchSnapshot(); + }); +}); diff --git a/src/graphql/queries/__tests__/__snapshots__/GetYdoc.js.snap b/src/graphql/queries/__tests__/__snapshots__/GetYdoc.js.snap new file mode 100644 index 00000000..f1087994 --- /dev/null +++ b/src/graphql/queries/__tests__/__snapshots__/GetYdoc.js.snap @@ -0,0 +1,40 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`GetYdoc should get the specified doc 1`] = ` +Object { + "data": Object { + "GetYdoc": Object { + "data": "B0Oav/LNDwAnAQV1c2VyczB7ImlkIjoiQVdBX1BiT2J5Q2RTLW5XaHVrcS0iLCJuYW1lIjoi6YKK57ej5Lq6In0BJwCav/LNDwADaWRzACcAmr/yzQ8AAmRzAAgAmr/yzQ8BBXtB7zeT80AAAHtB7zeT80AAAHtB7zeT80AAAHtB7zeT80AAAHtB7zeT80AAAAcBC3Byb3NlbWlycm9yAwlwYXJhZ3JhcGgHAJq/8s0PCAYEAJq/8s0PCQF0iJq/8s0PBwJ7Qe83k/NAAAB7Qe83k/NAAACEmr/yzQ8KAWWImr/yzQ8MAXtB7zeT80AAAISav/LNDw0Bc4iav/LNDw4Be0HvN5PzQAAAhJq/8s0PDwF0iJq/8s0PEAF7Qe83k/NAAACEmr/yzQ8RASCImr/yzQ8SAXtB7zeT80AAAISav/LNDxMBbYiav/LNDxQBe0HvN5PzQAAAhJq/8s0PFQFliJq/8s0PFgF7Qe83k/NAAACEmr/yzQ8XAXOImr/yzQ8YAXtB7zeT80AAAISav/LNDxk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dWkg/wDAeICAYPVpIP8A4gDCgHVpIP8AwHiAgGD1aSD/AOJAwoB1aSD/AMB4gIBg9Wkg/wDigMKAdWkg/wDAeICAYPVpIP8A4sDCgHVpIP8AwHiAgGD1aSD/AOMAwoB1aSD/AMB4gIBg9Wkg/wDjQMKAdWkg/wDAeICAYPVpIP8A44DCgHVpIP8AwHiAgGI1aSD/APkAgF9lcmG+AeE1aSD/APiAgExiNWkg/wDkAMBfZXJhvgHA5q/8s0PAhkBGwHykajhDAgJAQwNGwEfASMBPgFAAU0B1aSD/AMHFgEZAh0BRkCcAQLtARLiAgE=", + "versions": Array [ + Object { + "createdAt": "2023-09-07T08:14:14.005Z", + "snapshot": "AZq/8s0PAhkBGwEBmr/yzQ9I", + }, + Object { + "createdAt": "2023-09-07T08:16:45.613Z", + "snapshot": "Apq/8s0PAhkBGwHykajhDAIbAU0BBJq/8s0PSPKRqOEMctTKkPALA/XmkdAEAw==", + }, + Object { + "createdAt": "2023-09-07T08:18:32.467Z", + "snapshot": "A5q/8s0PAhkBGwHykajhDAgJAQwNGwEfASMBPgFAAU0B1aSD/AMHFgEZAh0BRkCcAQLtARLiAgEGmr/yzQ9ImM7mmA0D8pGo4Qxy1MqQ8AsD9eaR0AQD1aSD/AOTAw==", + }, + Object { + "createdAt": "2023-09-07T08:18:49.500Z", + "snapshot": "A5q/8s0PAhkBGwHykajhDAgJAQwNGwEfASMBPgFAAU0B1aSD/AMHFgEZAh0BRkCcAQLtARLiAgEHmr/yzQ9ImM7mmA0D8pGo4Qxy1MqQ8AsD1KewoQgN9eaR0AQD1aSD/AOTAw==", + }, + ], + }, + }, +} +`; + +exports[`GetYdoc should return empty versions when there is none 1`] = ` +Object { + "data": Object { + "GetYdoc": Object { + "data": "AgzOmK+vDwAnAQV1c2VyczB7ImlkIjoiQVdBX1BiT2J5Q2RTLW5XaHVrcS0iLCJuYW1lIjoi6YKK57ej5Lq6In0BJwDOmK+vDwADaWRzACcAzpivrw8AAmRzAAgAzpivrw8BBXtB7r15icAAAHtB7r15icAAAHtB7r15icAAAHtB7r15icAAAHtB7r15icAAAAcBC3Byb3NlbWlycm9yAwlwYXJhZ3JhcGgHAM6Yr68PCAYEAM6Yr68PCQExiM6Yr68PBwJ7Qe69eYnAAAB7Qe69eYnAAACEzpivrw8KATKIzpivrw8MAXtB7r15icAAAITOmK+vDw0BM4jOmK+vDw4Be0HuvXmJwAAACvmO4JABAIjOmK+vDxAFfbmdwKECfbmdwKECfbmdwKECfbmdwKECfbmdwKECh86Yr68PCAMJcGFyYWdyYXBoiPmO4JABBAJ9uZ3AoQJ9uZ3AoQIHAPmO4JABBQYEAPmO4JABCAE0iPmO4JABBwJ9uZ3AoQJ9uZ3AoQKE+Y7gkAEJATWI+Y7gkAELAX25ncChAoT5juCQAQwBNoj5juCQAQ0BfbmdwKECAA==", + "versions": Array [], + }, + }, +} +`; From 7be5b0df0d9dd15c32c2affdd5d50b6f91e26392 Mon Sep 17 00:00:00 2001 From: Nonumpa Date: Mon, 11 Sep 2023 19:06:07 +0800 Subject: [PATCH 3/4] fix(GetYdoc): add GraphQLNonNull to id --- src/graphql/queries/GetYdoc.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/graphql/queries/GetYdoc.js b/src/graphql/queries/GetYdoc.js index a854b28a..b2ddad6d 100644 --- a/src/graphql/queries/GetYdoc.js +++ b/src/graphql/queries/GetYdoc.js @@ -1,11 +1,11 @@ -import { GraphQLString } from 'graphql'; +import { GraphQLString, GraphQLNonNull } from 'graphql'; import Ydoc from 'graphql/models/Ydoc'; export default { type: Ydoc, args: { - id: { type: GraphQLString }, + id: { type: new GraphQLNonNull(GraphQLString) }, }, resolve: async (rootValue, { id }, { loaders }) => loaders.docLoader.load({ index: 'ydocs', id }), From 5b34e2d952826062560b554d4690a7943fd881bc Mon Sep 17 00:00:00 2001 From: Nonumpa Date: Mon, 11 Sep 2023 19:08:23 +0800 Subject: [PATCH 4/4] fix(test): update GetYdoc fixtures and snapshots --- src/graphql/queries/__fixtures__/GetYdoc.js | 17 ++++++----------- .../__tests__/__snapshots__/GetYdoc.js.snap | 12 ++++++------ 2 files changed, 12 insertions(+), 17 deletions(-) diff --git a/src/graphql/queries/__fixtures__/GetYdoc.js b/src/graphql/queries/__fixtures__/GetYdoc.js index a26c8f3b..5d440c00 100644 --- a/src/graphql/queries/__fixtures__/GetYdoc.js +++ b/src/graphql/queries/__fixtures__/GetYdoc.js @@ -1,31 +1,26 @@ export default { '/ydocs/doc/foo': { - data: - 'B0Oav/LNDwAnAQV1c2VyczB7ImlkIjoiQVdBX1BiT2J5Q2RTLW5XaHVrcS0iLCJuYW1lIjoi6YKK57ej5Lq6In0BJwCav/LNDwADaWRzACcAmr/yzQ8AAmRzAAgAmr/yzQ8BBXtB7zeT80AAAHtB7zeT80AAAHtB7zeT80AAAHtB7zeT80AAAHtB7zeT80AAAAcBC3Byb3NlbWlycm9yAwlwYXJhZ3JhcGgHAJq/8s0PCAYEAJq/8s0PCQF0iJq/8s0PBwJ7Qe83k/NAAAB7Qe83k/NAAACEmr/yzQ8KAWWImr/yzQ8MAXtB7zeT80AAAISav/LNDw0Bc4iav/LNDw4Be0HvN5PzQAAAhJq/8s0PDwF0iJq/8s0PEAF7Qe83k/NAAACEmr/yzQ8RASCImr/yzQ8SAXtB7zeT80AAAISav/LNDxMBbYiav/LNDxQBe0HvN5PzQAAAhJq/8s0PFQFliJq/8s0PFgF7Qe83k/NAAACEmr/yzQ8XAXOImr/yzQ8YAXtB7zeT80AAAISav/LNDxkBZ4iav/LNDxoBe0HvN5PzQAAAAwCav/LNDwIJAZq/8s0PARsBg5q/8s0PHQkBmr/yzQ8BGwGDmr/yzQ8eCQGav/LNDwEbAYOav/LNDx8JAZq/8s0PARsBg5q/8s0PIAkBmr/yzQ8BGwGDmr/yzQ8hCQGav/LNDwEbAYOav/LNDyIJAZq/8s0PARsBg5q/8s0PIwkBmr/yzQ8BGwGDmr/yzQ8kCQGav/LNDwEbAYOav/LNDyUJA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5q/8s0PAhkBGwHykajhDAgJAQwNGwEfASMBPgFAAU0B1aSD/AMHFgEZAh0BRkCcAQLtARLiAgE=', + data: 'mock data1', versions: [ { createdAt: '2023-09-07T08:14:14.005Z', - snapshot: 'AZq/8s0PAhkBGwEBmr/yzQ9I', + snapshot: 'mock snapshot1', }, { createdAt: '2023-09-07T08:16:45.613Z', - snapshot: - 'Apq/8s0PAhkBGwHykajhDAIbAU0BBJq/8s0PSPKRqOEMctTKkPALA/XmkdAEAw==', + snapshot: 'mock snapshot2', }, { createdAt: '2023-09-07T08:18:32.467Z', - snapshot: - 'A5q/8s0PAhkBGwHykajhDAgJAQwNGwEfASMBPgFAAU0B1aSD/AMHFgEZAh0BRkCcAQLtARLiAgEGmr/yzQ9ImM7mmA0D8pGo4Qxy1MqQ8AsD9eaR0AQD1aSD/AOTAw==', + snapshot: 'mock snapshot3', }, { createdAt: '2023-09-07T08:18:49.500Z', - snapshot: - 'A5q/8s0PAhkBGwHykajhDAgJAQwNGwEfASMBPgFAAU0B1aSD/AMHFgEZAh0BRkCcAQLtARLiAgEHmr/yzQ9ImM7mmA0D8pGo4Qxy1MqQ8AsD1KewoQgN9eaR0AQD1aSD/AOTAw==', + snapshot: 'mock snapshot4', }, ], }, '/ydocs/doc/foo2': { - data: - 'AgzOmK+vDwAnAQV1c2VyczB7ImlkIjoiQVdBX1BiT2J5Q2RTLW5XaHVrcS0iLCJuYW1lIjoi6YKK57ej5Lq6In0BJwDOmK+vDwADaWRzACcAzpivrw8AAmRzAAgAzpivrw8BBXtB7r15icAAAHtB7r15icAAAHtB7r15icAAAHtB7r15icAAAHtB7r15icAAAAcBC3Byb3NlbWlycm9yAwlwYXJhZ3JhcGgHAM6Yr68PCAYEAM6Yr68PCQExiM6Yr68PBwJ7Qe69eYnAAAB7Qe69eYnAAACEzpivrw8KATKIzpivrw8MAXtB7r15icAAAITOmK+vDw0BM4jOmK+vDw4Be0HuvXmJwAAACvmO4JABAIjOmK+vDxAFfbmdwKECfbmdwKECfbmdwKECfbmdwKECfbmdwKECh86Yr68PCAMJcGFyYWdyYXBoiPmO4JABBAJ9uZ3AoQJ9uZ3AoQIHAPmO4JABBQYEAPmO4JABCAE0iPmO4JABBwJ9uZ3AoQJ9uZ3AoQKE+Y7gkAEJATWI+Y7gkAELAX25ncChAoT5juCQAQwBNoj5juCQAQ0BfbmdwKECAA==', + data: 'mock data2', }, }; diff --git a/src/graphql/queries/__tests__/__snapshots__/GetYdoc.js.snap b/src/graphql/queries/__tests__/__snapshots__/GetYdoc.js.snap index f1087994..df1d4d72 100644 --- a/src/graphql/queries/__tests__/__snapshots__/GetYdoc.js.snap +++ b/src/graphql/queries/__tests__/__snapshots__/GetYdoc.js.snap @@ -4,23 +4,23 @@ exports[`GetYdoc should get the specified doc 1`] = ` Object { "data": Object { "GetYdoc": Object { - "data": "B0Oav/LNDwAnAQV1c2VyczB7ImlkIjoiQVdBX1BiT2J5Q2RTLW5XaHVrcS0iLCJuYW1lIjoi6YKK57ej5Lq6In0BJwCav/LNDwADaWRzACcAmr/yzQ8AAmRzAAgAmr/yzQ8BBXtB7zeT80AAAHtB7zeT80AAAHtB7zeT80AAAHtB7zeT80AAAHtB7zeT80AAAAcBC3Byb3NlbWlycm9yAwlwYXJhZ3JhcGgHAJq/8s0PCAYEAJq/8s0PCQF0iJq/8s0PBwJ7Qe83k/NAAAB7Qe83k/NAAACEmr/yzQ8KAWWImr/yzQ8MAXtB7zeT80AAAISav/LNDw0Bc4iav/LNDw4Be0HvN5PzQAAAhJq/8s0PDwF0iJq/8s0PEAF7Qe83k/NAAACEmr/yzQ8RASCImr/yzQ8SAXtB7zeT80AAAISav/LNDxMBbYiav/LNDxQBe0HvN5PzQAAAhJq/8s0PFQFliJq/8s0PFgF7Qe83k/NAAACEmr/yzQ8XAXOImr/yzQ8YAXtB7zeT80AAAISav/LNDxkBZ4iav/LNDxoBe0HvN5PzQAAAAwCav/LNDwIJAZq/8s0PARsBg5q/8s0PHQkBmr/yzQ8BGwG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igMKAdWkg/wDAeICAYPVpIP8A4sDCgHVpIP8AwHiAgGD1aSD/AOMAwoB1aSD/AMB4gIBg9Wkg/wDjQMKAdWkg/wDAeICAYPVpIP8A44DCgHVpIP8AwHiAgGI1aSD/APkAgF9lcmG+AeE1aSD/APiAgExiNWkg/wDkAMBfZXJhvgHA5q/8s0PAhkBGwHykajhDAgJAQwNGwEfASMBPgFAAU0B1aSD/AMHFgEZAh0BRkCcAQLtARLiAgE=", + "data": "mock data1", "versions": Array [ Object { "createdAt": "2023-09-07T08:14:14.005Z", - "snapshot": "AZq/8s0PAhkBGwEBmr/yzQ9I", + "snapshot": "mock snapshot1", }, Object { "createdAt": "2023-09-07T08:16:45.613Z", - "snapshot": "Apq/8s0PAhkBGwHykajhDAIbAU0BBJq/8s0PSPKRqOEMctTKkPALA/XmkdAEAw==", + "snapshot": "mock snapshot2", }, Object { "createdAt": "2023-09-07T08:18:32.467Z", - "snapshot": "A5q/8s0PAhkBGwHykajhDAgJAQwNGwEfASMBPgFAAU0B1aSD/AMHFgEZAh0BRkCcAQLtARLiAgEGmr/yzQ9ImM7mmA0D8pGo4Qxy1MqQ8AsD9eaR0AQD1aSD/AOTAw==", + "snapshot": "mock snapshot3", }, Object { "createdAt": "2023-09-07T08:18:49.500Z", - "snapshot": "A5q/8s0PAhkBGwHykajhDAgJAQwNGwEfASMBPgFAAU0B1aSD/AMHFgEZAh0BRkCcAQLtARLiAgEHmr/yzQ9ImM7mmA0D8pGo4Qxy1MqQ8AsD1KewoQgN9eaR0AQD1aSD/AOTAw==", + "snapshot": "mock snapshot4", }, ], }, @@ -32,7 +32,7 @@ exports[`GetYdoc should return empty versions when there is none 1`] = ` Object { "data": Object { "GetYdoc": Object { - "data": "AgzOmK+vDwAnAQV1c2VyczB7ImlkIjoiQVdBX1BiT2J5Q2RTLW5XaHVrcS0iLCJuYW1lIjoi6YKK57ej5Lq6In0BJwDOmK+vDwADaWRzACcAzpivrw8AAmRzAAgAzpivrw8BBXtB7r15icAAAHtB7r15icAAAHtB7r15icAAAHtB7r15icAAAHtB7r15icAAAAcBC3Byb3NlbWlycm9yAwlwYXJhZ3JhcGgHAM6Yr68PCAYEAM6Yr68PCQExiM6Yr68PBwJ7Qe69eYnAAAB7Qe69eYnAAACEzpivrw8KATKIzpivrw8MAXtB7r15icAAAITOmK+vDw0BM4jOmK+vDw4Be0HuvXmJwAAACvmO4JABAIjOmK+vDxAFfbmdwKECfbmdwKECfbmdwKECfbmdwKECfbmdwKECh86Yr68PCAMJcGFyYWdyYXBoiPmO4JABBAJ9uZ3AoQJ9uZ3AoQIHAPmO4JABBQYEAPmO4JABCAE0iPmO4JABBwJ9uZ3AoQJ9uZ3AoQKE+Y7gkAEJATWI+Y7gkAELAX25ncChAoT5juCQAQwBNoj5juCQAQ0BfbmdwKECAA==", + "data": "mock data2", "versions": Array [], }, },