Tag: #reactjs
-
401 error returned on graphQL api on react.js app hosted by aws-amplify (AuthMode: “AMAZON_COGNITO_USER_POOLS”)
0 I’m trying to set up a web app using react.js hosted by amplify on AWS, which I will need to store user preferences of certain categories in a dynamoDB table. Users must authenticate with Cognito before being able to view/interact with their preferences. I have been having a hard time trying to connect to…
-
WrappedComponent is undefined
1 I am stuck trying to implement graphql with react-apollo and graphcool. I am following this Tutorial My code with the request query looks like this : import React from ‘react’; import { graphql } from ‘react-apollo’ import gql from ‘graphql-tag’ const ALL_INSPECTIONS_QUERY = gql` # 2 query AllInspectionsQuery { allInspections { id date observation…
-
(Gatsby) Displaying frontmatter data in MDX component
0 I’m trying to create a simple Byline component to use in my MDX posts that displays the site author with a href="mailto:[email protected]" and a time tag with the date the post is given in its frontmatter. I’ve tried following this Gatsby tutorial to learn how to query frontmatter through GraphQL in a component. I…
-
How to create a commit, on newly created empty repository using GitHub Graphql API
0 GraphQL Query I used: mutation CreateGitProfileRepo($name: String!, $description: String!, $homepageUrl: URI!) { createRepository(input: {name: $name, visibility: PUBLIC, description: $description, homepageUrl: $homepageUrl}) { repository { ref(qualifiedName: "main") { repository { id } } } } } I’m getting ref ID as null, as it is an empty repo. Now I’m creating a commit using: mutation…