drizzle-graphql-plus 0.8.15 → 0.8.16
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/index.cjs +6 -14
- package/index.cjs.map +1 -1
- package/index.d.cts +84 -8
- package/index.d.ts +84 -8
- package/index.js +6 -14
- package/index.js.map +1 -1
- package/package.json +2 -1
package/index.cjs
CHANGED
|
@@ -2383,9 +2383,6 @@ ${fields.join("\n")}
|
|
|
2383
2383
|
}`);
|
|
2384
2384
|
const insertFields = [];
|
|
2385
2385
|
for (const [columnName, column] of Object.entries(tableInfo.columns)) {
|
|
2386
|
-
if (column.hasDefault || column.columnType === "SQLiteSerial") {
|
|
2387
|
-
continue;
|
|
2388
|
-
}
|
|
2389
2386
|
const typeStr = columnToSDL(
|
|
2390
2387
|
column,
|
|
2391
2388
|
columnName,
|
|
@@ -2899,21 +2896,16 @@ var buildSchemaSDL = (db, config) => {
|
|
|
2899
2896
|
const typeDefsArray = [];
|
|
2900
2897
|
typeDefsArray.push(generateTypeDefs(tables, relations));
|
|
2901
2898
|
typeDefsArray.push(generateQueryTypeDefs(tables));
|
|
2902
|
-
|
|
2903
|
-
typeDefsArray.push(generateMutationTypeDefs(tables));
|
|
2904
|
-
}
|
|
2899
|
+
typeDefsArray.push(generateMutationTypeDefs(tables));
|
|
2905
2900
|
const typeDefs = typeDefsArray.join("\n\n");
|
|
2906
2901
|
const queries = generateQueries(db, tables, relations);
|
|
2907
|
-
const
|
|
2908
|
-
Query: queries
|
|
2909
|
-
};
|
|
2910
|
-
if (config?.mutations !== false) {
|
|
2911
|
-
const mutations = generateMutations(db, tables);
|
|
2912
|
-
resolvers["Mutation"] = mutations;
|
|
2913
|
-
}
|
|
2902
|
+
const mutations = generateMutations(db, tables);
|
|
2914
2903
|
return {
|
|
2915
2904
|
typeDefs,
|
|
2916
|
-
resolvers
|
|
2905
|
+
resolvers: {
|
|
2906
|
+
Query: queries,
|
|
2907
|
+
Mutation: mutations
|
|
2908
|
+
}
|
|
2917
2909
|
};
|
|
2918
2910
|
};
|
|
2919
2911
|
|