@tinacms/graphql 0.0.0-2021111192348 → 0.0.0-2021111193535
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1 -1
- package/dist/index.js +5 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -23299,10 +23299,13 @@ var Database = class {
|
|
|
23299
23299
|
const schemaPath = import_path4.default.join(GENERATED_FOLDER, `_schema.json`);
|
|
23300
23300
|
await this.bridge.putConfig(graphqlPath, JSON.stringify(graphQLSchema, null, 2));
|
|
23301
23301
|
await this.bridge.putConfig(schemaPath, JSON.stringify(tinaSchema.schema, null, 2));
|
|
23302
|
+
const lookup = JSON.parse(await this.bridge.get(import_path4.default.join(GENERATED_FOLDER, "_lookup.json")));
|
|
23302
23303
|
if (this.store.supportsSeeding()) {
|
|
23303
23304
|
this.store.clear();
|
|
23304
|
-
|
|
23305
|
-
await this.store.seed("
|
|
23305
|
+
console.log("seeding db");
|
|
23306
|
+
await this.store.seed(import_path4.default.join(GENERATED_FOLDER, "_graphql"), graphQLSchema);
|
|
23307
|
+
await this.store.seed(import_path4.default.join(GENERATED_FOLDER, "_schema"), tinaSchema.schema);
|
|
23308
|
+
await this.store.seed(import_path4.default.join(GENERATED_FOLDER, "_lookup"), lookup);
|
|
23306
23309
|
await _indexContent(tinaSchema, this);
|
|
23307
23310
|
} else {
|
|
23308
23311
|
if (this.store.supportsIndexing()) {
|