I hereby claim:
- I am frikille on github.
- I am frikille (https://keybase.io/frikille) on keybase.
- I have a public key ASBy10DArxJ_ZxGaXFZ9hobR6CYl_1myVT7MCOaqGQrJEwo
To claim this, I am signing this object:
| # AWS S3 bucket for static hosting | |
| resource "aws_s3_bucket" "website" { | |
| bucket = "${var.website_bucket_name}" | |
| acl = "public-read" | |
| tags { | |
| Name = "Website" | |
| Environment = "production" | |
| } |
| literal PostInputKind | |
| literal ImageInputKind | |
| input AddPostInput { | |
| kind: ImageInputKind | |
| title: String! | |
| body: String! | |
| } | |
| input AddImageInput { |
| interface AddMediaBlock = { | |
| inputTypeName: AddMediaBlockInputTypeNameEnum! | |
| } | |
| enum AddMediaBlockInputTypeNameEnum { | |
| AddPostInput | |
| AddImageInput | |
| } | |
| input AddPostInput implements AddMediaBlockInterface { |
| // query | |
| mutation { | |
| createUser(user: {username: "John Doe", email: "john.doe@test"}) { | |
| user { | |
| username | |
| } | |
| errors { | |
| key | |
| message |
I hereby claim:
To claim this, I am signing this object:
| @GQLQuery | |
| class CommentsAndLikes extends React.Component { | |
| static queries = { | |
| commentAndLikes() { | |
| return ` | |
| likes { | |
| id, | |
| user { | |
| id | |
| } |
| let PostMutationType = new GraphQLObjectType({ | |
| name: 'PostType', | |
| fields: () => ({ | |
| like: { | |
| type: PostLikeType, | |
| args: { | |
| postId: { | |
| name: 'postId', | |
| type: GraphQLInt | |
| } |
| export function GQLQuery(Component) { | |
| Component.getQuery = function (name, ...params) { | |
| return this.queries[name].apply(this, params); | |
| }; | |
| return Component; | |
| } |
| import React from 'react'; | |
| import { GQLQuery } from './GQLQuery.js'; | |
| @GQLQuery | |
| class CommentsAndLikes extends React.Component { | |
| static queries = { | |
| commentAndLikes() { | |
| return ` | |
| likes { | |
| id, |
| import { | |
| graphql, | |
| GraphQLObjectType, | |
| GraphQLInt, | |
| GraphQLString, | |
| GraphQLSchema | |
| } from 'graphql'; | |
| import PostType from './PostType.js'; | |
| import User from '../models/User.js'; |