alinea 1.1.1 → 1.1.2
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/dist/backend/resolver/EntryResolver.js +1 -1
- package/dist/chunks/{chunk-LRCCBBNL.js → chunk-4G4JGT6L.js} +1 -1
- package/dist/cli/Serve.js +1 -1
- package/dist/cli/bin.js +1 -1
- package/dist/cloud/CloudBackend.js +1 -1
- package/dist/core/Graph.d.ts +1 -1
- package/dist/dashboard/util/PersistentStore.js +1 -1
- package/package.json +1 -1
|
@@ -152,7 +152,7 @@ var EntryResolver = class {
|
|
|
152
152
|
const name = this.scope.nameOf(field);
|
|
153
153
|
if (!name)
|
|
154
154
|
throw new Error(`Expression has no name ${field}`);
|
|
155
|
-
const isEntryField = name === "path" || name === "
|
|
155
|
+
const isEntryField = name === "path" || name === "title";
|
|
156
156
|
if (isEntryField)
|
|
157
157
|
return table[name];
|
|
158
158
|
return table.data[name];
|
package/dist/cli/Serve.js
CHANGED
package/dist/cli/bin.js
CHANGED
package/dist/core/Graph.d.ts
CHANGED
|
@@ -61,7 +61,7 @@ export interface Order {
|
|
|
61
61
|
type InferSelection<Selection> = Selection extends GraphQuery & Edge ? Expand<AnyQueryResult<Selection>> : Selection extends Expr<infer V> ? V : {
|
|
62
62
|
[K in keyof Selection]: Selection[K] extends Type<infer V> ? Type.Infer<V> : InferSelection<Selection[K]>;
|
|
63
63
|
};
|
|
64
|
-
type InferResult<Selection, Types, Include> = Selection extends
|
|
64
|
+
type InferResult<Selection, Types, Include> = Selection extends undefined ? Types extends undefined ? EntryFields & (Include extends undefined ? {} : InferSelection<Include>) : EntryFields & Infer<Types> & (Include extends undefined ? {} : InferSelection<Include>) : Selection extends Expr<infer Value> ? Value : InferSelection<Selection>;
|
|
65
65
|
type QueryResult<Selection, Types, Include> = Expand<InferResult<Selection, Types, Include>>;
|
|
66
66
|
interface CountQuery<Selection, Types, Include> extends GraphQuery<Selection, Types, Include> {
|
|
67
67
|
count: true;
|