fix: remote query types (#12712)
* fix: remote query types * fix: breaking types * Create eleven-falcons-return.md
This commit is contained in:
@@ -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()
|
||||
)
|
||||
|
||||
@@ -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"]>
|
||||
|
||||
Reference in New Issue
Block a user