Variable documentsConst

documents: {
     query OptionPositions($account: ID!) { account(id: $account) { ERC1155balances { id token { id type claim { id amountWritten amountExercised optionType { id underlyingAsset { symbol } underlyingAmount exerciseAsset { symbol } exerciseAmount exerciseTimestamp expiryTimestamp } redeemed } optionType { id underlyingAsset { symbol } underlyingAmount exerciseAsset { symbol } exerciseAmount exerciseTimestamp expiryTimestamp } } valueExact } } } : TypedDocumentNode<OptionPositionsQuery, Exact<{
        account: string | number | bigint;
    }>>;
     query OwnedOptionPosition($tokenId: ID!, $owner: ID!) { account(id: $owner) { ERC1155balances(where: { id: $tokenId }) { id token { id type claim { id amountWritten amountExercised optionType { id underlyingAsset { symbol } underlyingAmount exerciseAsset { symbol } exerciseAmount exerciseTimestamp expiryTimestamp } redeemed } optionType { id underlyingAsset { symbol } underlyingAmount exerciseAsset { symbol } exerciseAmount exerciseTimestamp expiryTimestamp } } valueExact } } } : TypedDocumentNode<OwnedOptionPositionQuery, Exact<{
        owner: string | number | bigint;
        tokenId: string | number | bigint;
    }>>;
     query TotalSupplyOptionPosition($tokenId: ID!) { erc1155Token(id: $tokenId) { id balances { id token { id type claim { id amountWritten amountExercised optionType { id underlyingAsset { symbol } underlyingAmount exerciseAsset { symbol } exerciseAmount exerciseTimestamp expiryTimestamp } redeemed } optionType { id underlyingAsset { symbol } underlyingAmount exerciseAsset { symbol } exerciseAmount exerciseTimestamp expiryTimestamp } } valueExact } } } : TypedDocumentNode<TotalSupplyOptionPositionQuery, Exact<{
        tokenId: string | number | bigint;
    }>>;
} = ...

Map of all GraphQL operations in the project.

This map has several performance disadvantages:

  1. It is not tree-shakeable, so it will include all operations in the project.
  2. It is not minifiable, so the string of a GraphQL query will be multiple times inside the bundle.
  3. It does not support dead code elimination, so it will add unused operations.

Therefore it is highly recommended to use the babel or swc plugin for production.

Type declaration

  • query OptionPositions($account: ID!) { account(id: $account) { ERC1155balances { id token { id type claim { id amountWritten amountExercised optionType { id underlyingAsset { symbol } underlyingAmount exerciseAsset { symbol } exerciseAmount exerciseTimestamp expiryTimestamp } redeemed } optionType { id underlyingAsset { symbol } underlyingAmount exerciseAsset { symbol } exerciseAmount exerciseTimestamp expiryTimestamp } } valueExact } } } : TypedDocumentNode<OptionPositionsQuery, Exact<{
        account: string | number | bigint;
    }>>
  • query OwnedOptionPosition($tokenId: ID!, $owner: ID!) { account(id: $owner) { ERC1155balances(where: { id: $tokenId }) { id token { id type claim { id amountWritten amountExercised optionType { id underlyingAsset { symbol } underlyingAmount exerciseAsset { symbol } exerciseAmount exerciseTimestamp expiryTimestamp } redeemed } optionType { id underlyingAsset { symbol } underlyingAmount exerciseAsset { symbol } exerciseAmount exerciseTimestamp expiryTimestamp } } valueExact } } } : TypedDocumentNode<OwnedOptionPositionQuery, Exact<{
        owner: string | number | bigint;
        tokenId: string | number | bigint;
    }>>
  • query TotalSupplyOptionPosition($tokenId: ID!) { erc1155Token(id: $tokenId) { id balances { id token { id type claim { id amountWritten amountExercised optionType { id underlyingAsset { symbol } underlyingAmount exerciseAsset { symbol } exerciseAmount exerciseTimestamp expiryTimestamp } redeemed } optionType { id underlyingAsset { symbol } underlyingAmount exerciseAsset { symbol } exerciseAmount exerciseTimestamp expiryTimestamp } } valueExact } } } : TypedDocumentNode<TotalSupplyOptionPositionQuery, Exact<{
        tokenId: string | number | bigint;
    }>>

Generated using TypeDoc