I want to mutation a draft order from customer account ui extension. So, i need fetch admin api.
In my app backend
export async function action({ request }: ActionFunctionArgs) {
const { sessionToken, cors } =
await authenticate.public.customerAccount(request);
const origin = request.headers.get("Origin") as string;
const shopDomain = sessionToken.dest;
const session = await sessionStorage.loadSession(shopDomain);
At same time i need use admin.graphql() to query admin api
const { admin } = await authenticate.admin(request);
I just want to know, can’i use the same request on the diffrent part? if not, what is the correct method?