Skip to content
#

mutations

Here are 171 public repositories matching this topic...

shahidhk
shahidhk commented Nov 1, 2018

Right now query in the nodejs api is just a string. we should support gql-parsed strings too, so that if they are exported elsewhere, it can be used directly.

import gql from 'graphql-tag';

export const GRAPHQL_QUERY=gql`
  query {
    something {
      anotherthing
    }
  }
`;
JoshuaKGoldberg
JoshuaKGoldberg commented Dec 6, 2020

🐛 Bug Report

  • TypeStat version: 0.4.1
  • TypeScript version: 4.1.2
  • Node version: N/A

Actual Behavior

- let returnsEither: () => string;
+ let returnsEither: () => string | (() => number);

returnsEither = () => "";
returnsEither = () => 7;

Expected Behavior

The () => string should be wrapped in () too.

Reproduction

See ☝️

Improve this page

Add a description, image, and links to the mutations topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the mutations topic, visit your repo's landing page and select "manage topics."

Learn more