1.2.2 • Published 7 years ago

graphql-relay-mutationify v1.2.2

Weekly downloads
9
License
MIT
Repository
github
Last release
7 years ago

graphql-relay-mutationify

Turn javascript objects into a relay mutation input friendly string.

import mutationify from 'graphql-relay-mutationify';

mutationify({
  firstName: 'Mick',
  lastName: 'Hansen',
  count: 30
}); // {firstName: "Mick", lastName: "Hansen", count: 30}
import mutationify from 'graphql-relay-mutationify';

let input = {
  firstName: 'Mick',
  lastName: 'Hansen',
  count: 30
};

let query = `
  mutation {
    updateProfile(input: {profile: ${mutationify(input)}}) {
      profile
    }
  }
`;
1.2.2

7 years ago

1.2.1

7 years ago

1.2.0

8 years ago

1.1.1

8 years ago

1.1.0

8 years ago

1.0.0

9 years ago