MrHertal / react-admin-amplify

AWS Amplify data provider for react-admin.
MIT License
159 stars 43 forks source link

Unable to display users from DynamoDB in resource #62

Closed harshmsomani closed 2 years ago

harshmsomani commented 2 years ago
import React from 'react';
import { Admin, Resource, ListGuesser } from "react-admin";
import { buildAuthProvider, buildDataProvider } from "react-admin-amplify";
import * as mutations from "./graphql/mutations";
import * as queries from "./graphql/queries";

function App() {
  return (
    <Admin 
      authProvider = {buildAuthProvider({ authGroups: [] })} 
      dataProvider = {buildDataProvider({ queries, mutations })}>
        <Resource name = "User" list={ListGuesser}/>
    </Admin>
  );
}

export default App;

Screenshot 2021-12-22 at 5 42 05 PM

Auth mode was setup using AMAZON_COGNITO_USER_POOLS, I am able to login and logout, see the user details on Cognito & DynamoDB.