extended-salmon
extended-salmon7mo ago

REFINE GRAPHQL MOCK DATABASE

Hello, i have a question, does refine mock database in graphql resetted?
No description
5 Replies
kapa.ai
kapa.ai7mo ago
Hi @LouisS. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- Hmm, I don't know enough to give you a confident answer yet. The information extracts provided do not contain specific details about whether the mock database in GraphQL provided by Refine gets reset or not. However, Refine does provide a built-in REST data provider that can simulate the use of a database, as mentioned in this source (https://refine.dev/blog/refine-vs-redwood-js#refine-4). For more specific details about GraphQL and its implementation in Refine, you may want to check out the official Refine documentation (https://refine.dev/docs/data/packages/graphql). ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
kapa.ai
kapa.ai7mo ago
<@412211246188855296> kapa.ai is still learning and improving, please let us know how it did by reacting below
extended-salmon
extended-salmon7mo ago
i have this code: import { COMPANIES_LIST_QUERY } from "@/graphql/queries"; import { SearchOutlined } from "@ant-design/icons"; import { CreateButton, List } from "@refinedev/antd"; import { getDefaultFilter, useGo, useTable } from "@refinedev/core"; import { Table } from "antd"; export const CompanyList = () => { const go = useGo(); const { tableProps, filters } = useTable({ resource: "companies", pagination: { pageSize: 12, }, meta: { gqlQuery: COMPANIES_LIST_QUERY, }, }); return ( <List breadcrumb={false} headerButtons={() => ( <CreateButton onClick={() => { go({ to: { resource: "companies", action: "create", }, options: { keepQuery: true, }, type: "replace", }); }} /> )} > <Table {...tableProps} pagination={{ ...tableProps.pagination, }} > <Table.Column dataIndex="name" title="Company Title" defaultFilteredValue={getDefaultFilter("id", filters)} filterIcon={<SearchOutlined />} /> </Table> </List> ); }; but there is error saying: tableProps does not exist, what is the problem? @kapa.ai
kapa.ai
kapa.ai7mo ago
Let me check the knowledge base for you. One moment! :books: Sorry @LouisS, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist: Perhaps try again in 15mins?
extended-salmon
extended-salmon7mo ago
solved, thank you