INNER CODE UNIT · JavaScript

QueryRunner

fsprojects/FSharp.Data.GraphQL · samples/apollo-client/src/QueryRunner.js:72

export default class QueryRunner extends React.Component {
    constructor(props) {
        super(props);
        var subscription = new SubscriptionClient('ws://localhost:8086/', {
            reconnect: true
        });
        var client = new ApolloClient({
            link: subscription,
            cache: new InMemoryCache()
        });
        this.state = {
            query: deferQuery,
            subscription: subscription,
            client: client,
            results: ''
        };

        this.handleChange = this.handleChange.bind(this);

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…