Skip to content

Instantly share code, notes, and snippets.

@SachaG
Last active March 15, 2017 23:43
Show Gist options
  • Save SachaG/64c4f0a1fde269870f427145e3c79f20 to your computer and use it in GitHub Desktop.
Save SachaG/64c4f0a1fde269870f427145e3c79f20 to your computer and use it in GitHub Desktop.
Nova Gist 2
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