Skip to content

Commit

Permalink
Account no edgeql() in src and no edgedb schema in generation
Browse files Browse the repository at this point in the history
  • Loading branch information
CarsonF committed Nov 3, 2023
1 parent 46b0733 commit 43bb3fd
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions src/core/edgedb/generate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,9 @@ async function generateAll({
// Project::Resource extending default::Resource
schemaFile.addTypeAlias({ name: 'DefaultResource', type: 'Resource' });
schemaFile
.getModule('Project')!
.getInterface('Resource')!
.removeExtends(0)
.getModule('Project')
?.getInterface('Resource')
?.removeExtends(0)
.addExtends('DefaultResource');

await generateQueryFiles({ client, root });
Expand All @@ -146,8 +146,9 @@ async function generateInlineQueries({
}) {
console.log('Generating queries for edgeql() calls...');

const grepForShortList =
await $$`grep -lR edgeql src --exclude-dir=src/core/edgedb`;
const grepForShortList = await $$({
reject: false,
})`grep -lR edgeql src --exclude-dir=src/core/edgedb`;
const shortList = project.addSourceFilesAtPaths(
grepForShortList.stdout.split('\n'),
);
Expand Down

0 comments on commit 43bb3fd

Please sign in to comment.