Open pauxus opened 1 year ago
@DSL class House { Map<String, Room> rooms } @DSL class Room { @Key String name @Owner House house List<String> adjacentRoomNames @LinkTo(provider = {house.rooms}, selector = 'adjacentRoomNames') List<Room> adjacentRooms } House.Create.With { room("LivingRoom") { adjacentRoomNames("Kitchen", "DiningRoom") } room("DiningRoom") room("Kitchen") room("Bedroom") }
What about bidrectional links?
What about bidrectional links?