GithubHelp home page GithubHelp logo

refine-directus's People

Contributors

chiu0602 avatar gremo avatar prawee avatar salihozdemir avatar tspvivek avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

refine-directus's Issues

A doubt more than an issue.

Hello! Thank you for updating the Directus SDK.

I noticed that you employ legacy methods in the authentication flow. I'm wondering if it's acceptable to use an alternative authentication method, such as cookies, and utilize the package solely as a data provider?

Include authorization and authentication in the package.

Hi! I'm willing to add authorization and authentication to your package, would you like to help so we can go faster?

I'm almost done with the new authentication API and will use the permissions endpoint to get the authorization working.

Disabling pagination

First of all thank you for creating this library.

I'm looking to just pull down a list of content and essentially ignore pagination. I've tried setting pagination: { mode: 'off' } when using the useList hook however it seemingly is not having an effect.

I see in the code that it is defaulting to the first page and a set page size. I can set the page size to -1 which I imagine will have the effect of returning all of the content but it looks like it will still make the aggregate count request.

Am I correct in this statement? Would you be willing to accept a PR that will disable the aggregate count request and default the page size to -1 when the pagination mode is set to off?

Thanks,

Pagination doesn't work with PK other than "id"

In my directus collection, the PK is named structure_id. In my structure/list.ts I'm using the following useTable to get the list:

const { tableProps, sorters, filters } = useTable({
  syncWithLocation: true,
  dataProviderName: "directus",
  meta: {
    noStatus: true,
    aggregateField: "structure_id",
  },
});

Records are returned but the pagination isn't working. I've done a PR that solve the issue #9.

Thanks

Cannot use `getMany` with a PK other than "id"

This code, where I'm using a resource with a PK named "structure_id", won't work:

  const { data, isLoading, isError } = useMany({
    resource: "structure",
    dataProviderName: "directus",
    ids: [1, 2, 3],
  });

'Invalid query. Invalid filter key "id" on "structure".

I've done a PR that adds this feature #12

Sdk 12.0.0

Hello! Thank you for creating this tool.

I'm new to "refine" and have been using Directus. I'm interested in trying out your package. I recently noticed that Directus has released SDK version 12.0.0.

Do you have plans to update your package accordingly?

Support of Refine v4

Hi!

We are currently testing Refine and as we already use Directus. As such, we are wondering if you were planning to update your dataprovider to the V4 of Refine?

Thanks!

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.