GithubHelp home page GithubHelp logo

Comments (7)

medz avatar medz commented on June 21, 2024 2

I should thank you for providing such accurate information so that I can quickly fix it and create test code for it.

from prisma-dart.

medz avatar medz commented on June 21, 2024

@kidusdev Please provide the version number of orm

from prisma-dart.

medz avatar medz commented on June 21, 2024

Thx, I will verify and fix it as soon as possible.

from prisma-dart.

kidusdev avatar kidusdev commented on June 21, 2024

@medz it is in the generated user model check at the bottom of the issue code

from prisma-dart.

medz avatar medz commented on June 21, 2024

@kidusdev fix in v4.0.0-beta.1 version https://github.com/medz/prisma-dart/releases/tag/4.0.0-beta.1

from prisma-dart.

kidusdev avatar kidusdev commented on June 21, 2024

@medz wow that was fast. 👏👏👏 it is solved.

from prisma-dart.

ebwood avatar ebwood commented on June 21, 2024

If the type in .prisma is primitive list type like Int[], then the generated fromJson will cause error:
type 'MappedListIterable<dynamic, dynamic>' is not a subtype of type 'Iterable<int>?'.
It should change from like json['posts'] to List.from(json['posts']

model User {
	posts Int[]
}

from prisma-dart.

Related Issues (20)

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.