fix: remote query types (#12712)

* fix: remote query types

* fix: breaking types

* Create eleven-falcons-return.md
This commit is contained in:
Harminder Virk
2025-06-12 12:19:26 +02:00
committed by GitHub
parent 8a88748982
commit b316924572
5 changed files with 105 additions and 55 deletions

View File

@@ -155,7 +155,7 @@ export class Query {
queryOptions: RemoteQueryInput<TEntry>,
options?: RemoteJoinerOptions
): Promise<GraphResultSet<TEntry>> {
const normalizedQuery = toRemoteQuery<TEntry>(
const normalizedQuery = toRemoteQuery(
queryOptions,
this.#remoteQuery.getEntitiesMap()
)

View File

@@ -1,5 +1,4 @@
import {
RemoteQueryEntryPoints,
RemoteQueryFilters,
RemoteQueryGraph,
RemoteQueryInput,
@@ -31,7 +30,7 @@ const ARGUMENTS = "__args"
export function toRemoteQuery<const TEntity extends string>(
config: {
entity: TEntity | keyof RemoteQueryEntryPoints
entity: TEntity
fields: RemoteQueryInput<TEntity>["fields"]
filters?: RemoteQueryFilters<TEntity>
pagination?: Partial<RemoteQueryInput<TEntity>["pagination"]>