Giter VIP home page Giter VIP logo

Comments (4)

tywalch avatar tywalch commented on May 24, 2024

Hi @RaeesBhatti 👋

It looks like you set the items to that list to "required" which creates a constraint to enforce that the property is provided on creation and that it won't be deleted. If you remove "required" from the list item you'll be able to delete individual items

from electrodb.

RaeesBhatti avatar RaeesBhatti commented on May 24, 2024

Thanks for the quick reply @tywalch . And thank you for creating this project!

After I'd removed the required prop from the list items, I tried to do .data((attr, op) => op.remove(attr.subscribers, 2)) but the second argument is ignored. It throws an error:

Attribute \"subscribers\" is Required and cannot be removed

Can you please give me a hint towards the right approach!

from electrodb.

tywalch avatar tywalch commented on May 24, 2024

Here is a playground that demonstrates the syntax of how the accomplish this: https://electrodb.fun/?#code/PQKgBAsg9gJgpgGzARwK5wE4Es4GcA0YuccYGeqCALgUQBYCG5YA7llXWAGbZwB2MXGBDAAUKKwBbAA5QMVMAG8wAUT5V2AT0IBlTADcsAY1IBfbhiiSwAIkRwjVSzABGNgNzijUPrgVUGFwRSAF5bTShUDAB9AKC4aL4GSTgPLx8-MCcGIwBrTCEwvjgWVXUtAApRMCVqmrBJWEQALlr6+v4NKk1Wm2y8zBt8Ovb9AqwfXoBGIZH64gxDE17+-IwGaWkbOdNh9oYqJywXVCo8VsU5moBzZLgASRgLq-ru6Thev2w+a9n29vIaCw5CeWQw6BeuxeuFQLlwRmwLgKz3+r0071aAHIEFg-Ji9qiyHAgSDWk50ATUew4JJcCjCTU3h8wJjJBt8S92tJLO95Dg6W0GR02VgEABBGAwci4AXKJlYr5YH74okkuCg8lmSlCjjSuhQBAwAAK2GWSiy6OZmL4qEkSIwKsBqGB6rJ4K1nPqUIZ3v+vvaCLgB3VYqo9NR8tsNrtg217XgXAYlDDYAqAEowCEAHxgAAiwYAdHwoCx03H6sBgGAjAw+MWFEiGrAsFwcDAwAwuGcMNXyMGYJ6+zAAPJ8BA9MEQ1H++qoaQwfuh8P-SM2aP2v6EyusA5GThcOTVxg-PBZKAdviaDuHRGnOCeli7ui9ECb1Hb4gKIxRcjqLJSPAAhkVg6H4MA5wXM4BwZT9WnTTMc3zM4ixLMtByDEcxwnTVIR2bUlXgAAPc5BXaW4UllT1pFyC5uBwQ1emooZqysWRcGpVoAG0bHIh4YBsABdMAZ3aXAaPNVtEFBGwxOY7wZCgdizi4oTTFw9o1JqX05UCYJhNENNPFEVYCgLaQnwqRReMeLEpgAJgAZkxUw01EAtIIYCoKgOJxCCgaQM2zQV-ILchGjGbybwLGE4QRY4Ck4uyBMM0QXILa4oHTdwgA

from electrodb.

RaeesBhatti avatar RaeesBhatti commented on May 24, 2024

Ah I see. Seems obvious in retrospect 😅. Thank you!

from electrodb.

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.