Questions tagged [amplifyjs]

AmplifyJS is a set of components designed to solve common web application problems with a simplistic API.

Amplify's goal is to simplify all forms of data handling by providing a unified API for various data sources. Amplify's store component handles persistent client-side storage, using standards like localStorage and sessionStorage, but falling back on non-standard implementations for older browsers. Amplify's request adds some additional features to jQuery's ajax method while abstracting away the underlying data source.

http://amplifyjs.com/

187 questions
1
vote
1 answer

Must provide Source with graphql API call in AWS amplify

I have got an error during a graphql API call in AWS amplify I import the queries like (just like in the documentation with *): import * as queries from '../graphql/queries'; This is my API request where I receive the error (Must provide…
1
vote
1 answer

Using AWS Cognito/Amplify just as an OIDC service

I have an Angular app which I want to secure using AWS Cognito. I initially started using the package angular-oauth2-oidc which worked great, I just gave it a few details (issuer, client_id etc) and was up and running. I'm now looking at…
ADringer
  • 2,614
  • 36
  • 63
1
vote
1 answer

AWS AppSync GraphQL API only return 20 items from DynamoDB

I'm try to run queries to AWS AppSync to fetch all list of Todos which I got around 50 items in DynamonDB but the result only return 20 items in my web, is there any limitation for AppSync? I used amplify library to run the query: API.graphql( …
Mohammad Harith
  • 593
  • 1
  • 10
  • 22
1
vote
0 answers

Amplify Put Issues

I am having some trouble with the put method of the React-Native api. Here is my code: Storage.put(this.props.noteId, JSON.stringify(newNote), { level: 'private', contentType: 'application/json' }) When run I get…
Zach
  • 472
  • 4
  • 9
1
vote
1 answer

large drop down storage using AmplifyJS

I have 3 drop down select box.First drop down box contains 10 data,As of now data is populating from server using php/ajax. When I request from first drop down,the second and third drop down data updating from server.The second and third drop down…
user3454272
  • 51
  • 1
  • 6
1
vote
1 answer

amplify.store doesn't preserve my object's prototype functions

I have an object, Foo, which has a constructor and a prototype definition: var Foo = function Foo(bar) { this._bar = bar; } Foo.prototype = { _bar: null getBar: function() { return _bar; } } My application has an array of Foo objects,…
mtmurdock
  • 12,756
  • 21
  • 65
  • 108
1
vote
1 answer

Storing KnockoutJS modeled data with AmplifyJS

I'm trying to figure out a way to cache my knockoutJS SPA data and I've been experimenting with amplifyJS. Here's one of my GET functions: UserController.prototype.getUsers = function() { var self = this; return $.ajax({ type: 'GET', …
Norbert
  • 2,741
  • 8
  • 56
  • 111
1
vote
1 answer

AmplifyJS, IE11 strange storage choice (Memory vs. localStorage)

Why AmplifyJS uses different storage types in the following two cases: For this online example AmplifyJS uses localStorage in IE11, so the saved value is visible on different tabs. But when I save the page and run it locally, AmplifyJS chooses a…
user1572418
  • 253
  • 2
  • 9
1
vote
0 answers

Finish XmlHttpRequest (XHR) Even When User Leaves Webpage/site

Background: Website using amplifyjs for ajax calls. Problem: User makes a selection, but leaves webpage/site before the xhr completes. Their selection is not saved. Expected Result The service that is being called is a void service, so it will not…
Bardicer
  • 1,405
  • 4
  • 26
  • 43
1
vote
1 answer

amplify.store quota exceeded on iPad 1

I'm using AmplifyJS Store in a JQuery plugin I'm developing. While I was testing it I noticed that on First-generation iPad [1] I get an alert that says amplify.store quota exceeded anytime I change orientation and refresh the page (when it loads…
ObiHill
  • 11,448
  • 20
  • 86
  • 135
1
vote
2 answers

"this" keyword when mixing Typescript, Knockout, Amplify, and RequireJs

I have an mvc application where I am writing the client side code in TypeScript, as well as using several well known javascript libraries, including knockout, amplifyjs, and requirejs. I have ran into a situation where the expected behavior isn't…
Josh
  • 776
  • 6
  • 20
1
vote
1 answer

Getting HTTP Status 415 sending a post request to Jersey RESTful service

I'm sending a 'POST' request containing a JSON object converted to JSON from my Knockout observable via ko.toJSON method. I send it using Amplify. This is my Amplify setting: amplify.request.define('addContract', 'ajax', { url:…
Pejman
  • 3,784
  • 4
  • 24
  • 33
1
vote
2 answers

Eliminate cross domain/sub domain OPTIONS request for ASP.NET Website and ASP.NET WebAPI

I have an ASP.Net MVC 4 Website and another ASP.Net Web API project.Currently both are hosted on different domain.I am using amplify.js to consume API on my front end.Since both websites are hosted on different domain its always a crossdomain…
Cris
  • 12,799
  • 5
  • 35
  • 50
1
vote
1 answer

How can you apply knockoutjs bindings from a model stored in html5 local storage? Using jStorage

I need data from the server to be available offline for my KnockOut.js ViewModel. I am using jStorage to help with my lack of knowledge of HTML5 localStorage. This is what I have tried: var localModel = $.jStorage.get("model"); if(!localModel){//No…
Marz
  • 381
  • 5
  • 10
1
vote
1 answer

amplifyjs unknown resourceId

I'm trying to setup amplifyjs within my MVC4 application. All I'm trying to do a simple server call that returns json data. I got it working in my separate sample project. But now I'm integrating the same code with my real app. that has following…
afr0
  • 848
  • 1
  • 11
  • 29