UNPKG

@aws-amplify/graphql-api-construct

Version:

AppSync GraphQL Api Construct using Amplify GraphQL Transformer.

14 lines (13 loc) 345 B
export const defaultUserAgent = ({ serviceId, clientVersion }) => async () => { const sections = [ ["aws-sdk-js", clientVersion], ["ua", "2.0"], ["os/other"], ["lang/js"], ["md/rn"], ]; if (serviceId) { sections.push([`api/${serviceId}`, clientVersion]); } return sections; };