Last active
March 15, 2017 23:43
-
-
Save SachaG/64c4f0a1fde269870f427145e3c79f20 to your computer and use it in GitHub Desktop.
Nova Gist 2
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import SmartForm from "meteor/nova:forms"; | |
import Movies from './movies.js'; | |
import gql from 'graphql-tag'; | |
export const moviesItemFragment = gql` | |
fragment moviesItemFragment on Movie { | |
_id | |
name | |
year | |
} | |
`; | |
const MoviesNewForm = (props, context) => { | |
return ( | |
<SmartForm | |
collection={Movies} | |
mutationFragment={moviesItemFragment} | |
/> | |
) | |
} | |
export default MoviesNewForm; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment