Tag: aws-amplify
-
Call Amplify.configure() before using any methods on the category. | SwiftUI
0 When I start my project I got this error. How can I fix this problem. I am trying to use Graphql without Apollo SDK. Error: Failed to initialize Amplify with ConfigurationError: AWSS3StoragePlugin.AWSS3StoragePlugin cannot be added after Amplify.configure(). Recovery suggestion: Do not add plugins after calling Amplify.configure(). /Users/ufukkosker/Library/Developer/Xcode/DerivedData/ArtApp-xxxxxxxhzyxxxxx/SourcePackages/checkouts/amplify-swift/Amplify/Categories/DataStore/DataStoreCategory.swift:21: Fatal error: DataStore category is not configured.…
-
Trying to fetch owner created data from Amplify GraphQL from NextJS React App
0 This is my first ever Stack overflow question and I’m a pretty new programmer. I can’t figure out how to do a basic fetch from the API on Amplify based on the user being logged using Authenticator and reading the data that they are the owner of. I’m getting the error "Variable ‘id’ has…
-
Defining relationships between different graphql model types
0 The context of our problem: We are new in using AWS DataStore via GraphQl and defined two models, Memory and UserLabel. type Memory @model { id: ID! authorId: String! text: String! createdOn: AWSDateTime! lastModifiedOn: AWSDateTime! userLabels: [UserLabel] @hasMany(fields: ["id"]) mapPin: [MapPin] @hasMany(fields: ["id"]) } type UserLabel @model { id: ID! authorId: String! name: String!…
-
AWS Amplify API with GraphQL access rules defined but not working
0 I’m using AWS Amplify API with GraphQL in my Flutter app and I have defined a GraphQL schema with the following access rules: Any user, authenticated or not, can read all UserProfiles. Only the owner can create, read, update, and delete their own UserProfile. I am authenticating users with amplify_auth_cognito using Email. This is…
-
object Object at handleError graphql
0 I am creating a react app using amplify and graphql my graphql schema is type Note @model @auth(rules: [ { allow: public } ] ){ id: ID! name: String! description: String image: String noteBook: NoteBook! } type NoteBook @model @auth(rules: [ { allow: public } ] ){ id: ID! name: String! notes: [Note!] }…
-
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…