feat: deprecate remoteQueryConfig in favor of queryConfig (#10773)
Fixes: FRMW-2783
This commit is contained in:
@@ -27,7 +27,7 @@ export const GET = async (
|
||||
const query = remoteQueryObjectFromString({
|
||||
entryPoint: "user",
|
||||
variables: { id },
|
||||
fields: req.remoteQueryConfig.fields,
|
||||
fields: req.queryConfig.fields,
|
||||
})
|
||||
|
||||
const [user] = await remoteQuery(query)
|
||||
@@ -62,7 +62,7 @@ export const POST = async (
|
||||
const user = await refetchUser(
|
||||
req.params.id,
|
||||
req.scope,
|
||||
req.remoteQueryConfig.fields
|
||||
req.queryConfig.fields
|
||||
)
|
||||
|
||||
res.status(200).json({ user })
|
||||
|
||||
@@ -23,7 +23,7 @@ export const GET = async (
|
||||
const query = remoteQueryObjectFromString({
|
||||
entryPoint: "user",
|
||||
variables: { id },
|
||||
fields: req.remoteQueryConfig.fields,
|
||||
fields: req.queryConfig.fields,
|
||||
})
|
||||
|
||||
const [user] = await remoteQuery(query)
|
||||
|
||||
@@ -18,9 +18,9 @@ export const GET = async (
|
||||
entryPoint: "user",
|
||||
variables: {
|
||||
filters: req.filterableFields,
|
||||
...req.remoteQueryConfig.pagination,
|
||||
...req.queryConfig.pagination,
|
||||
},
|
||||
fields: req.remoteQueryConfig.fields,
|
||||
fields: req.queryConfig.fields,
|
||||
})
|
||||
|
||||
const { rows: users, metadata } = await remoteQuery(query)
|
||||
|
||||
Reference in New Issue
Block a user