# Smart Segment not displayed

**URL:** <https://community.forestadmin.com/t/smart-segment-not-displayed/1615>\
**Category:** Help me!\
**Tags:** howtos\
**Created:** [January 13, 2021, 3:29pm UTC](https://community.forestadmin.com/t/smart-segment-not-displayed/1615 "2021-01-13T15:29:48Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![aurelien.laclergue](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/aurelien.laclergue/32/1037_2.png) [@aurelien.laclergue](https://community.forestadmin.com/u/aurelien.laclergue)\
**Post date:** [January 13, 2021, 3:29pm UTC](https://community.forestadmin.com/t/smart-segment-not-displayed/1615/1 "2021-01-13T15:29:48Z")

</div>

I just try to add smart segment on my collection:

```javascript
collection('client', {
  actions: [],
  fields: [],
  segments: [{
    name: 'Provider',
    where: async () => {
      console.log('ok');
      return {"id": { $in: ['1'] } };
    }
  }]
});

```

But I don’t see my segment Provider on the interface when I restart my development server. I don’t know why. In addition, there is no log “ok”.

Do I miss something ?

## Expected behavior

I want to add “Client” segment on my forest interface.

## Actual behavior

I see nothing

## Failure Logs

No failure log

## Context

Please provide any relevant information about your setup.

- Package Version: 6.0.0
- Express Version: 4.17.1
- Sequelize Version: Mongoose
- Database Dialect: Mongo
- Database Version: 4.0.2
- Project Name:

---

<div class="post-metadata">

**Author:** ![anon94532230](https://avatars.discourse-cdn.com/v4/letter/a/a587f6/32.png) [@anon94532230](https://community.forestadmin.com/u/anon94532230)\
**Post date:** [January 13, 2021, 4:01pm UTC](https://community.forestadmin.com/t/smart-segment-not-displayed/1615/2 "2021-01-13T16:01:33Z")

</div>

Hi @aurelien.laclergue !  
Once you coded the smart segment, did you set it to visible form the layout settings ?  
You can check the documentation [here](https://docs.forestadmin.com/documentation/reference-guide/segments/smart-segments#creating-a-smart-segment).

---

<div class="post-metadata">

**Author:** ![aurelien.laclergue](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/aurelien.laclergue/32/1037_2.png) [@aurelien.laclergue](https://community.forestadmin.com/u/aurelien.laclergue)\
**Post date:** [January 13, 2021, 4:05pm UTC](https://community.forestadmin.com/t/smart-segment-not-displayed/1615/3 "2021-01-13T16:05:58Z")

</div>

Hello @anon94532230,

I read the doc but even the simpliest does not work. I dont see the smart segment in the layout settings either.

---

<div class="post-metadata">

**Author:** ![anon94532230](https://avatars.discourse-cdn.com/v4/letter/a/a587f6/32.png) [@anon94532230](https://community.forestadmin.com/u/anon94532230)\
**Post date:** [January 13, 2021, 4:22pm UTC](https://community.forestadmin.com/t/smart-segment-not-displayed/1615/4 "2021-01-13T16:22:08Z")

</div>

Can you share the name of your project ?

---

<div class="post-metadata">

**Author:** ![aurelien.laclergue](https://dub1.discourse-cdn.com/flex013/user_avatar/community.forestadmin.com/aurelien.laclergue/32/1037_2.png) [@aurelien.laclergue](https://community.forestadmin.com/u/aurelien.laclergue)\
**Post date:** [January 13, 2021, 4:52pm UTC](https://community.forestadmin.com/t/smart-segment-not-displayed/1615/6 "2021-01-13T16:52:01Z")

</div>

Ok I find why. I not write my collection name as my file name 😕

---

<div class="post-metadata">

**Author:** ![anon94532230](https://avatars.discourse-cdn.com/v4/letter/a/a587f6/32.png) [@anon94532230](https://community.forestadmin.com/u/anon94532230)\
**Post date:** [January 13, 2021, 4:54pm UTC](https://community.forestadmin.com/t/smart-segment-not-displayed/1615/7 "2021-01-13T16:54:03Z")

</div>

Glad to hear your issue is resolved 🙂
