init
This commit is contained in:
10
snippets/rjsx-mode/GraphQL/expgql
Normal file
10
snippets/rjsx-mode/GraphQL/expgql
Normal file
@@ -0,0 +1,10 @@
|
||||
# -*- mode: snippet -*-
|
||||
# uuid: ac6e22b0-886b-4a09-861b-c759bfb8fcbe
|
||||
# contributor: Jimmy Yuen Ho Wong <wyuenho@gmail.com>
|
||||
# name: exportGraphQL
|
||||
# key: expgql
|
||||
# --
|
||||
|
||||
export default compose(
|
||||
graphql(${1:queryOrMutation}, { name: ${2:name} }),
|
||||
)(${1:${TM_FILENAME_BASE}})
|
||||
8
snippets/rjsx-mode/GraphQL/graphql
Normal file
8
snippets/rjsx-mode/GraphQL/graphql
Normal file
@@ -0,0 +1,8 @@
|
||||
# -*- mode: snippet -*-
|
||||
# uuid: 1a3750bd-8108-40f5-92b4-f0730272815c
|
||||
# contributor: Jimmy Yuen Ho Wong <wyuenho@gmail.com>
|
||||
# name: graphQLForComponent
|
||||
# key: graphql
|
||||
# --
|
||||
|
||||
import { compose, graphql } from 'react-apollo'
|
||||
Reference in New Issue
Block a user