useQuery without variable

    0

    6

    graphqlapollo
    GraphQL and JavaScript

    Call useQuery without a variable

    Shortcut: graphql.query.novariable

    import { useQuery } from '@apollo/client';
    
    const { data, error, loading, refetch } = useQuery(graphqlQueryName);
    Codiga Logo
    Codiga Hub
    • Rulesets
    • Explore
    • Cookbooks
    • Playground
    soc-2 icon

    We are SOC-2 Compliance Certified

    G2 high performer medal

    Codiga – All rights reserved 2022.